Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics NAV (Archived)

Matching with 2 different tables

(0) ShareShare
ReportReport
Posted on by 227

Hi all,

Is it possible to capture the data from 2 different tables?

I now have the table of Sales Lines (table id 36) and table of Pro.Order Line (table id 5406), actually I want to capture the data from table Pro.Order Line (field: Production Order No.).

But I have faced one problem is that, even through I have put the field of production Order No.(from table 5406) in the layout, but it not able to capture the data.

Then I'm think is it possible to do like this:

If the Table Sales Line (Field: No.) is same as the table Pro.Order Line (Field: item No), then it can capture the data of the Production Order No. from the table 5406. (Refer the picture below)

8233.Capture1.PNG

8233.Capture2.PNG

If it is possible, how I going to do this matching? I have try using the SETRANGE to filter, but it also doesn't work.

Thanks.

*This post is locked for comments

  • Suggested answer
    Suresh Kulla Profile Picture
    Suresh Kulla 44,630 on at
    RE: Matching with 2 different tables

    A page can have only one source,  for your scenario the page source would be table 37 (Sales Line) but on the OnAfterGetRecord of the page, you will retrieve the Prod. Order Line using the filters, but just using Item No. filter will get you many prod. order lines because you could have multiple prod. orders for the same item. So you need to to use other filters to retrieve the record, then you could record variable field as the source.

    Create a global variable and retrieve the record as mentioned above.

    For example, check page 10010 where it displays a field from the SalesHeader table.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Announcing Our 2025 Season 1 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Vahid Ghafarpour – Community Spotlight

We are excited to recognize Vahid Ghafarpour as our February 2025 Community…

Tip: Become a User Group leader!

Join the ranks of valued community UG leaders

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 292,516 Super User 2025 Season 1

#2
Martin Dráb Profile Picture

Martin Dráb 231,321 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans