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)

Form and infopart datasource relation

(0) ShareShare
ReportReport
Posted on by 427

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

I have the same question (0)
  • Arkadia2 Profile Picture
    427 on at

    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

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