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 793

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

  • Verified answer
    udaY-ch Profile Picture
    udaY-ch 4,624 on at
    RE: BOM and BOMVersion Tables on the form "BomConsistOf"

    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

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,317 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans