web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Microsoft Dynamics AX (Archived)

accessing a form method from another form.

(0) ShareShare
ReportReport
Posted on by

Hi Everyone, 

 

is it possible to access a form's string Field's method

from another form's string Field's method. 

i need an idea to proceed.Any suggestions are appreciated.

*This post is locked for comments

  • Verified answer
    Sukrut Parab Profile Picture
    71,741 Moderator on at

    You can access one forms method on another form using object.

    Object myForm = element.args().caller();

    myForm.myMethod(); //Here myMethod is your parent forms method

  • Crispin John Augustine Profile Picture
    37,081 on at

    If you move the Code to the table/class, it can be accessed everywhere, easier, and it is a best practice too

  • Crispin John Augustine Profile Picture
    37,081 on at

    element.args().caller(); can only access the methods under Form>>methods, not the  methods behind design/datasource controls.

  • Suggested answer
    Community Member Profile Picture
    on at

    Thank you for the quick reply.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the July Top 10 Community Leaders

These are the community rock stars!

Leaderboard > 🔒一 Microsoft Dynamics AX (Archived)

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans