23.12.2010, 20:11 | #1 |
Участник
|
dax-ideas: Creating a new form using code
Источник: http://dax-ideas.blogspot.com/2010/1...sing-code.html
============== static void CreateForm_usingCode(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(CustTable)); formBuildDesign = form.addDesign('design'); formBuildTabControl = formBuildDesign.addControl(FormControlType::Tab, 'Tab1'); formBuildTabPageControl = formBuildTabControl.addControl(FormControlType::TabPage, 'TabPage'); formBuildGridControl = formBuildTabPageControl.addControl(FormControlType::Grid, 'Grid'); formString = formBuildGridControl.addDataField(formBuildDatasource.id(), fieldNum (CustTable, Accountnum)); formString.label("Customer Account"); args = new Args(); args.object(form); formRun = classFactory.formRunClass(args); formRun.init(); formRun.run(); formRun.wait(); } Источник: http://dax-ideas.blogspot.com/2010/1...sing-code.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору. |
|
|
|