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)

Dynalink for listpages

(0) ShareShare
ReportReport
Posted on by 2,461

Apparently listpages do not support dynalinks to other forms - at least I couldn't find or create a listpage that does. Can anybody confirm that and explain why or otherwise give me a hint on how to enable dynalinks to other forms on a listpage?

*This post is locked for comments

I have the same question (0)
  • Verified answer
    David Massey Profile Picture
    on at

    In the case of calling a list page from a form, you can look at ProjUnpostedTransListPageInteraction class as an example of defining the displayed data based on the calling object.

    In the case of calling a form from a list page, look at the LinkActive method of the top level data source for the form. The form ProjTable is call from multiple forms including list pages.

  • Florian Hopfner Profile Picture
    2,461 on at

    Thanks, I was looking for the case of calling a form from a list page. I was aware of the linkActive method, but in most cases, this method seems to be only called once when you open a details form from a list page. If you change the record in the list page after that, the linkActive method is not called anymore.

    But your hint with ProjTable led me to the JmgProjStatusListPage, where it works. I will have to look further into that list page to see how it is done and if the solution can be transferred to other list pages.

  • Verified answer
    Community Member Profile Picture
    on at

    Unfortunately, it works only for design property Style=dialog.  1. Self-relation in table or in ExtendedDataType (for SalesQuotation base ExtendedDataType contains relation to itself). 2. Child form must contain Datasource based on the same table as Listpage.  In that case it doesn't need to override any method in child form - it works automatically. 

  • Vidir Reyr Bjorgvinsson Profile Picture
    20 on at

    Dynalink from Listpage to secondary form is possible.  Only thing missing is the event to linkActive() that the list page does not fire.  That being said, the provided datasource from the listpage is still active inside the form.  As such, the element().args().record() in the child form changes when parent record is changed.  Adding a listener inside the secondary form allows for a "manual" dynalink.  This listener can then recreate the form datasource criteria or can simply call datasource.linkactive() manually.  One example is the element.active() method, it gets called numerous times, including when user reenters the form.  By adding a criteria in active() to only act after the form is fully initiated and the element().args().record() differs will provide a make-shift Dynalink option.

  • Douglas Noel Profile Picture
    3,905 on at

    Hi,

    other workaround (if the called form is a standard one) for 'installing' some kind of listener is using a periodic timer call (e.g. every 1 second) which checks the change in args.record() to the last remembered (recid is sufficient) and simulate the linkactive on change. So you will 'see' the action in a maximum timer interval time if stepping through the caller list page without reactivate the secondary form.

    It's only a minimal overhead comparing the last callerRecid against the current one.

    Should only be a clue. Not nice, but it works.

    Regards Douglas

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