I have a scenario that I need to make a control button and based on that the field on data entity should be mandate.
Moved from Dynamics AX Forum.
Look for events with Validating in name, such as onValidatingField or onValidatingWrite.
HI Martin,
My requirement is " I need a make field mandatory on Data entity in F&O, using x++ code."
I need to know which event handler I can use or there is some another way to achieve.
Do you mean mandatory? In AX 2012 or F&O?
The form may set a value of parameter field. When you're trying to import the data, you may check whether a field is empty and the parameter requires the field to be populated. If so, you'll fail the validation. Implementation details depends on what your question is about.
André Arnaud de Cal...
292,160
Super User 2025 Season 1
Martin Dráb
230,962
Most Valuable Professional
nmaenpaa
101,156