web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :

Don't change the name of a Form instance in AX 7

PA-22040759-0 Profile Picture PA-22040759-0 6,194
In AX 2012 you could do something like this, where you change the name of a Form instance:

form = new Form(formstr(MyPrettyForm));
form.name("AnotherNameToConfuseEverybody);

args = new Args();
args.object(form);

formRun = classfactory.formRunClass(args);
etc...

In AX 7 changing the name seems to confuse AX to a sense where it can't figure out to actually run eventual code in (at least) the init and run methods of the form.

For many reasons I think it is a poor idea to change the name of a form instance, now there is also a technical reason not do it.

Comments

*This post is locked for comments