Checking the controls within a particular group of the Dynamics AX form

Updated: 09.09.2014

Sometimes it is necessary to check the controls within a particular group of the Dynamics AX form.

It's not hard to do:

getGroupControls(element.design().controlName(identifierStr(OverviewAmountGroup));

void getGroupControls(FormControl _formControl)
{
Counter j;
FormGroupControl groupControl;

if (_formControl is FormGroupControl)
{
groupControl = _formControl as FormGroupControl;

for (j = 1; j <= groupControl.controlCount(); j++)
{
if (groupControl.controlNum(j) is FormGroupControl)
getGroupControls(groupControl.controlNum(j));
else
groupControl.controlNum(j).visible(false);
}
}
else
{
_formControl.visible(false);
}
}

 

Other blog posts

11.01.2018
How small business shall work with major contracts. Opinion of Ruslan Kafiatullin from Neti Projects from scratch are always riskyAs a rule, implementation projects from scratch are always...
14.11.2017
Why outsourcing company is more effective than In-house IT-specialists There are situations when in-house specialists spend most of their time awaiting requests or they cannot get their work...
26.09.2017
Microsoft Dynamics AX program decisions are constantly improving. At first, innovations come to European companies, and only after that to Russian enterprises.We aspire to be one step ahead in this...

Subscribe for blog updates

Get updated with our blog new articles via your email!


Subscribe now