25.11.2015, 00:13 | #1 |
Участник
|
goshoom: Refreshing form parts
Источник: http://dev.goshoom.net/en/2015/11/re...ng-form-parts/
============== When using form parts in AX 2012, you sometimes need to explicitly refresh their data based on an event in the main form. It may not be completely obvious how to do it, but it’s not too complicated in the end. Form parts are actually forms by themselves and if you know how to manipulate forms at runtime, you know how to work with parts too. The tricky part it getting a reference to a form part. One of possible solutions is adding the following method to SysSetupFormRun class (so it’s available to all forms): <div class="wp-geshi-highlight-wrap5"><div class="wp-geshi-highlight-wrap4"><div class="wp-geshi-highlight-wrap3"><div class="wp-geshi-highlight-wrap2"><div class="wp-geshi-highlight-wrap"><div class="wp-geshi-highlight"><div class="xpp">public FormRun getFormPartByName(str _name){ PartList partList = new PartList(this); FormRun part; int i; for(i = 1; i <span class="sy0">
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|