Skip to main content

Notifications

Announcements

No record found.

Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

Form and infopart datasource relation

(0) ShareShare
ReportReport
Posted on by 425

Hello everyone,

I changed the OMInternalOrganizationListPage form to include a infopart which is linked on the OMInternalOrganization table in the form to the OMHierarchyRelationship in the part, using a foreign key.

Web part displays the information correctly, the link is working. In the part web, I have an action which calls a class. This is where I am experiencing a difficulty. The args.record() transmitted to the class is OMOMInternalOrganization from the form, not OMHierarchyRelationship from the part's query. I need the OMHierarchyRelationship record and I can't figure why it is the form main datasource which is transmitted instead of the part query main datasource.

Thanks to anyone who could explain me the form-infopart datasource logic and how I could get a hold of the part's main datasource (OMHierarchyRelationship) in my action class.

Eric Lepage

*This post is locked for comments

  • Arkadia2 Profile Picture
    Arkadia2 425 on at
    RE: AX 2012 client - Form and infopart datasource relation

    Thanks for the quick reply Crispin. It seems like an odd behavior since the infopart has its own query to fetch the data displayed; I assumed the form main datasource was only used as a link to launch the query and that the part action takes place within the context of the part, especially when considering that parts can be reused across multiple forms and hence have different entry point to a container form.

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

Daivat Vartak – Community Spotlight

We are honored to recognize Daivat Vartak as our March 2025 Community…

Announcing Our 2025 Season 1 Super Users!

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

Kudos to the February Top 10 Community Stars!

Thanks for all your good work in the Community!

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

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans