0
votes

I was wondering if it's possible to check a StringEdit-field after the user has leaved this field in MS Dynamics AX 2009.

for example:

I have a field called cliHouseNumber, and I want to check if the user has leaved this.

3

3 Answers

0
votes

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.

0
votes

Create this method in the form methods;

edit String editcliHouseNumber(
    boolean set,
    String    _cliHouseNumber
    )
{
    if(set)
    {
        //It has been changed - do what you want to
        //in here...
    }

    return _cliHouseNumber;
}

Set your field property "dataMethod" to "editcliHouseNumber".

-2
votes

okay, here is another option;

enter image description here

Right click the field, and override the "lostFocus" method.