Skip to main content

Posts

Showing posts with the label PartList

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); }