AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 14.07.2016, 01:14   #1  
Blog bot is offline
Blog bot
Участник
 
25,643 / 848 (80) +++++++
Регистрация: 28.10.2006
SysOperationAutomaticUIBuilder (SysOperationUIBuilder) amd Nested Data Contracts
Источник: http://alexvoy.blogspot.com/2016/07/...uibuilder.html
==============

<div dir="ltr" style="text-align: left;" trbidi="on">Shame on me, but this the only way I found to get access to form controls exposing from a nested data contract.

Say, we have a data contract (blue) with a nested data contract (orange).



Both will be exposed to the dialog; however, we can have access via binding info to the main contract parameters only. For example, we can change some properties for these fields in postBuild() method of its SysOperationAutomaticUIBuilder (SysOperationUIBuilder) class like follows.


public void postBuild()
{
DialogField dialogField;
SysOperationUIBindInfo bindInfoLoc = this.bindInfo();

super();

contract = this.dataContractObject();

dialogField = bindInfoLoc.getDialogField(contract, methodStr(****CheckPostContract, parmJournalId));
dialogField.allowEdit(false);
}

However, we cannot do the same way for parameters from the nested data contract. To attain this goal we can, however, iterate all the form build controls to find the one we need to change. In my example, I used the label of the exposed Currency EDT.

private void setCurrencyCodeFieldMandatory(FormBuildGroupControl _nestedContractGroup //nestedContractGroup){
FormBuildStringControl currencyFormBuildStringControl;
int i;
Object childControl;

for (i = 1; i
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
kurthatlevik: Master data concepts Blog bot DAX Blogs 0 18.02.2016 12:11
Pawan's Ax blog: Using Data Contracts in X++ [AX 2012] Blog bot DAX Blogs 0 21.12.2013 11:11
emeadaxsupport: SEPA affected objects Blog bot DAX Blogs 0 29.11.2013 13:11
atinkerersnotebook: Using PowerPivot to Analyze Dynamics AX Data Blog bot DAX Blogs 1 05.10.2013 07:23
Microsoft Dynamics CRM Team Blog: Data Migration Manager Tips and Tricks Blog bot Dynamics CRM: Blogs 0 02.09.2008 22:05

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 18:37.