web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

BOM and BOMVersion Tables on the form "BomConsistOf"

(0) ShareShare
ReportReport
Posted on by 942

Hello,

I need to write a display method for the form "BomConsistOf" which is called from the listpage form EcoResProductPerCompanyListPage . It has got two grids.

The upper one takes it values from the "BomVersion" datasource (table "BomVersion):

6038.112.JPG

The lower one takes it values from the "Bom" datasource (table "Bom"):

5543.113.JPG

I have to add a display method to the lower grid. Therefore I think the best place for it is "BOM" table. The method should take values from the upper-grid record. So I need to find a record in the table "BomVersion" based on the record in the table "BOM". But there is no direct relations between tables "BOM" and "BOMVersion". there is a dynalink between datasources but it's not one-to-one:

0310.114.JPG

7652.115.JPG

So I can't use it.

But if I know somehow the "itemid" value which comes from the form EcoResProductPerCompanyListPage I could find a record in the "BomVersion" using BomId value from the BOM table and ItemId value from EcoResProductPerCompanyListPage.

6266.116.JPG

Could you please tell me where I can retrieve this value "ItemId" and would it be possible to use it in the display method of mine in "BOM" table? If no could you please point me to the right direction how can I write such a display method because there is no direct relation between records in "BOMVersion" and "BOM" tables. Thank you in advance.

*This post is locked for comments

I have the same question (0)
  • Verified answer
    udaY-ch Profile Picture
    5,133 on at

    Hi, Knight

    Refer the below post for your reference and the active bomversion can be found by item as the post shows the right way to filter bom based on the bomVerison.

    codeexamplecenter.blogspot.com/.../ax-how-find-active-bom-version-and-list.html

    /Uday.

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

#1
Martin Dráb Profile Picture

Martin Dráb 4 Most Valuable Professional

#1
Priya_K Profile Picture

Priya_K 4

#3
MyDynamicsNAV Profile Picture

MyDynamicsNAV 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans