Skip to main content

Notifications

Announcements

No record found.

Finance | Project Operations, Human Resources, ...
Answered

what's the usage of linkactive() method

Posted on by 77

can anyone explain to me the usage of method linkactive() in datasource i need clear explanation please

  • Verified answer
    ergun sahin Profile Picture
    ergun sahin 8,812 Super User 2024 Season 1 on at
    RE: what's the usage of linkactive() method

    "This method is executed when a user moves to another record in the master data source. This causes an update to all linked data sources. The super() call in the FormDataSource.active method calls the FormDataSource.linkActive method on all linked child data sources if the LinkType property on the parent data source is set to Passive, Delayed, or Active. The linkActive method can be overridden on a form data source. Right-click the Methods node under the data source, point to Override Method, and then click linkActive."

    docs.microsoft.com/.../dynamics.ax.application.formdatasource.linkactive

    "About linkActive(), this method is used by dynalinks. For example, you open Vendors form and Invoices from Vendors. A dynalink exists between these two forms so you see just invoices for the active vendor. If you choose another vendor, dynalink functionality calls linkActive() method in Invoices form and shows right invoices."

    www.dynamicsuser.net/.../3

    "linkActive() Calls the FormDataSource.exeuteQuery method on data sources that are linked to the current data source. So, without it, the related data won’t get updated when you move to another record on the master data source."

    www.dynamicsuser.net/.../61268

    "The LinkActive is called when the active method in a dynalinked parent form is called. Commonly overridden to change the user interface to correspond to a different parent record (element.args().record())."

    www.dynamicsuser.net/.../28365

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

December Spotlight Star - Muhammad Affan

Congratulations to a top community star!

Top 10 leaders for November!

Congratulations to our November super stars!

Tips for Writing Effective Suggested Answers

Best practices for providing successful forum answers ✍️

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 291,269 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 230,198 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,156

Leaderboard

Product updates

Dynamics 365 release plans