{
super();
FormMenuButtonControl btnSetAll = btnGroup.addControl(FormControlType::MenuButton, 'btnSetAll');
btnSetAll.text('Set all');
while select climateOptions
{
FormButtonControl btn = btnSetAll.addControl(FormControlType::Button, 'btnSetAll'+climateOptions.ClimateControlOptionCode);
btn.text(climateOptions.ClimateControlOptionDescription);
btn.OnClicked = SetAllClick;
}
while select climateTypes
{
FormMenuButtonControl btnSetAllType = btnGroup.addControl(FormControlType::MenuButton, 'btnSetAllType'+climateTypes.ClimateControlTypeCode);
btnSetAllType.text('Set all '+climateTypes.ClimateControlTypeDescription);
{
FormButtonControl btn = btnSetAllType.addControl(FormControlType::Button, 'btnSetAllType'+climateTypes.ClimateControlTypeCode+climateOptions.ClimateControlOptionCode);
btn.text(climateOptions.ClimateControlOptionDescription);
}
}
}
{
}