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()
        {
            Item.text('');

            super();

        }

Leave a comment