Announcements
When I select a record on the form and the status field(type enum) of the record is "start" then the button "pickup " in the form should be enabled.
Then I edit the record and update it from the form and the status becomes "stop". Then when I select the record , then the "pickup" button should be disabled.
Where should I write the code in form level ? At the data source of the form or in form>datasource>field(status)>method?
Could you show the code..I am a beginner in ax2012
In an extension of a standard form in d365 , the active method can't be overridden.
1)So do we use event handlers ? If so which one?
2)If I have multiple datasources in the form , then for which one do we write the code?
Hi Sir,
I found an earlier thread with consistent requirements, please refer to:
community.dynamics.com/.../disable-button-when-selecting-data
Hi PrachiGupta,
You can override active() of datasource.
Code like this:
Button.enabled(Table.LoadStatus == Status::Start ? true : false);
André Arnaud de Cal...
293,998
Super User 2025 Season 1
Martin Dráb
232,850
Most Valuable Professional
nmaenpaa
101,158
Moderator