Skip to main content

Posts

Showing posts with the label BI Design Suite integrates with Microsoft Dynamics AX. Logistica

Runtime form controls using Axapta and save data

This is sample code for Runtime form controls using MSD Axapta and save data to table public void GenerateControl() { int i; int a; int d; str lable; DictTable dictTable; TableId tableID; ; i = 1; d=1; a=0; lable = ""; formTabControl = this.form().addControl(FormControlType::Tab,"MainTab"); formTabControl.heightMode(1); formTabControl.widthMode(1); formTabPageControl = formTabControl.addControl(FormControlType::TabPage,"MainTabPage"); formTabPageControl.caption("Test"); this.controlMethodOverload(true); formGroupControl = formTabPageControl.addControl(FormControlType::Group, "MyGroup"); formGroupControl.caption("Test"); while select * from _Question order by RecId { a = 1; while select * from answer where answer.GroupId == _Question.GroupId { if(_Question.ControlId == QuestionControlInputType::CheckBox) { formCheckBoxControl = formGroupCont...

Get item from combobox using axapta code

Get item from combo box using axapta code. This function will return selected value of combo box control. I hope it can help you to avoid combo box troubleshooting. display str telNo() { telNo=CustTable::find(Table1.ParentOffice).Phone; Table1.TelNo = telNo; rec = ComboBox1.selectionChange(); officeName = ComboBox1.getText(ComboBox1.selectionChange()); parentOffice1 = Table1.ParentOffice; return CustTable::find(CustTable.AccountNum).Phone; }