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.
No comments:
Post a Comment