I need to add some custom validation to some existing AX forms based on some business rules. If the data on the field meets a certain criteria, I need to update the value of the text field programmatically. Since this customization will be applied across many forms, i've created a class which implements the logic and have added a menu button to the forms that invokes the method in my class. The class uses the FormRun.form().design() method to recursively discover all the FormStringControl objects on the form and calls its text() object to retrieve the current value of the control. The issue is that calling the myFormStringControlObject.text([str]) and providing a new value does not change the value of the field. I don't want to update the database directly because I want the user to cancel out without saving. My question is, how do i go about updating a field on a form dynamically without committing it to database first? is there any other method to call after calling the text([str]) method in order for the change to take effect?
Thanks
*This post is locked for comments