I'm working on AX 2012 in X++ and am trying to add functionality to the LogisticsPostalAddress form part. Part of the functionality needs to populate the form (before the changes are saved), but I don't seem to be able to populate the fields.
I have found reference to using the following code:
LogisticsPostalAddress_ZipCode.text("NewCode");
This doesn't seem to work. If I use:
LogisticsPostalAddress.ZipCode = "NewCode";
The form doesn't change, but if I save and reopen the form the data has been changed.
I need to populate the fields on the form so that the user can see the new values before closing the form. Any suggestions?
Kevin
Try:
LogisticsPostalAddress.ZipCode = "NewCode";
LogisticsPostalAddress_ds.refresh();
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With