AX / D365FO – CHeck If a form String control text (FormStringCOntrol) has been modified

Sometimes it may be necessary to figure out if a form’s text control (FormStringControl) has changed.

To understand if it has actually been modified we cannot use the modified() method because this is always called even if the value has remained the same. Alternatively we can use the textchange() method which is called only if the text has changed.

In this example I want to clear a control field but only if the value of another control field has been modified

        public void textChange()



Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s