Seem cannot edit form field in AX 2012 - X ++

I am working on AX 2012 in X ++ and am trying to add functionality to the LogisticsPostalAddress form part. Part of the functionality should fill out the form (before the changes are saved), but I seem to be unable to fill in the fields.

I found a link to use the following code:

LogisticsPostalAddress_ZipCode.text("NewCode");

This does not work. If I use:

LogisticsPostalAddress.ZipCode = "NewCode";

The form does not change, but if I save and re-open the form, the data has been changed.

I need to fill in the form fields so that the user can see the new values ​​before closing the form. Any suggestions?

Kevin

+5
source share
1 answer

Try:

LogisticsPostalAddress.ZipCode = "NewCode";
LogisticsPostalAddress_ds.refresh();
+6
source

All Articles