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)

Passing datasource field information to methods on button on a form

(0) ShareShare
ReportReport
Posted on by 282

Hi all

Running AX 2012 R3 CU9.

I have a business requirement that means I need to have a button on the ActionPane of the SalesTable form. It will run a static method which I've created already. However, the method takes an input variable of a SalesId.

I was hoping to have the button's clicked() method pass the SalesId of the order in question when setting off this method. But I can't work out the X++ syntax to get the SalesTable.SalesId record from within the form.

(I assume "this" returns the form itself)

Any help would be much appreciated


Cheers

Luke

*This post is locked for comments

  • Verified answer
    Agha SirajulDola Profile Picture
    555 on at

    Hey there,

    in SalesTable form, u can easily have Sales order number by assigning  =SalesTable.SalesId, this will get u current SalesId of selected Control

  • lukbel Profile Picture
    282 on at

    Knew it'd be something simple I was missing haha

    Thanks so much for your help!

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