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

24.05.2018
Disclaimer
08.05.2018
We apply OKR methodology in Neti since 2014. We started from a quarterly planning, but then understood that no ambitious goals can be achieved per quarter. So we switched to semi-annual intervals....
11.04.2018
As you know, Microsoft recently has launched Dynamics 365 Business Central. And we are proud to announce we have launched intracompany training for sales and development departments:Why do we need it...

Subscribe for blog updates

Get updated with our blog new articles via your email!


Subscribe now