Skip to main content

Posts

Showing posts with the label formrun

Set Focus on Form control in Ax 2012

To Set Focus on Form control in Ax 2012 you can take help from below code. Args args; FormRun _formRun; FormControl _formControl; ; args = new Args(formStr(CustTable)); _formRun = classFactory.formRunClass(args); _formRun.run(); _formRun.detach(); _formControl = _formRun.design().controlName(identifierStr(Desc)); _formControl.setFocus();

How to invisible formpart in Ax 2012

To invisible formpart in Ax 2012 you can try below code in Job. PartList partList; Counter partCnt; FormRun FormRun_part; NumberOf NoOfParts; super(); partList1 =new PartList(element); NoOfParts =partList1.partCount(); for (partCnt =1; partCnt <= NoOfParts; partCnt++) { FormRun_part =partList1.getPartById(partCnt); if (FormRun_part.name() ==formStr(YourFormName)) { FormRun_part.design().controlName("YourControlName").visible(false); } }

Invisible Factbox in Ax 2012

To make Invisible Factbox in Ax 2012 you can write code below in particular event as per your requirement. PartList       _partList  = new PartList(element); FormRun     _formRun; int                k; for (k = 1; k <= _partList.partCount(); k++) {       _formRun = _partList.getPartById(k);       _formRun.design().visible(false); }