
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)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.