Показать сообщение отдельно
Старый 12.08.2016, 17:11   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
palleagermark: Don't change the name of a Form instance in AX 7
Источник: http://www.agermark.com/2016/08/dont...nce-in-ax.html
==============

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.

Источник: http://www.agermark.com/2016/08/dont...nce-in-ax.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.