|
05.07.2012, 22:11 | #1 |
Участник
|
ax-erp: Create form by code with formBuildDatasource
Источник: http://microsoft-dynamics-ax-erp.blo...code-with.html
============== static void JobUsingCodeCreateForm(Args _args) { Form form; FormRun formRun; Args args; FormBuildDesign formBuildDesign; FormBuildControl formBuildControl; FormBuildTabControl formBuildTabControl; FormBuildTabPageControl formBuildTabPageControl; FormBuildGridControl formBuildGridControl; FormBuildDatasource formBuildDatasource; FormBuildStringControl formString; ; form = new Form(); formBuildDatasource = form.addDataSource(tableStr(PurchTable)); formBuildDesign = form.addDesign('design'); formBuildTabControl = formBuildDesign.addControl(FormControlType::Tab, 'Tab'); formBuildTabPageControl = formBuildTabControl.addControl(FormControlType::TabPage, 'TabPage'); formBuildGridControl = formBuildTabPageControl.addControl(FormControlType::Grid, 'Grid'); formString = formBuildGridControl.addDataField(formBuildDatasource.id(), fieldNum(PurchTable, PurchId)); formString.label("PurchId"); args = new Args(); args.object(form); formRun = classFactory.formRunClass(args); formRun.init(); formRun.run(); formRun.wait(); } Источник: http://microsoft-dynamics-ax-erp.blo...code-with.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
Опции темы | Поиск в этой теме |
Опции просмотра | |
|