axaptadynamics-ax-2009x++dynamics-ax-2012

How to check a StringEdit after leaving it: in Dynamics AX?


I was wondering if it's possible to check a StringEdit-field when user leaves this field in MS Dynamics AX 2009.

for example:

I have a field called cliHouseNumber, and I want to check if the user left the field.


Solution

  • Usually the correct place is the modified method in the datasource field or the modifiedField on the table. If you want to ensure, that a field is entered use the mandatory property on the. Do not try to force the user to remain on a not entered field.

    These methods will be called only when a value changed, which is usually what you want.

    Also see the answer to this question.