Hello Everyone,
We have a form in which we are creating dynamic text boxes and checkboxes if they meet a certain criteria. Below is the part of the code i'm using
while select TableRow where TableRow.Value == ReqIntValue
{
formStringControl = TestString.addControl(FormControlType::String, int2Str(ReqIntValue));
formStringControl.label(TableRow.ValueDesc);
formstringcontrol.widthMode(3);
formstringcontrol.multiLine(true);
formstringcontrol.autoDeclaration(true);
FormCheckBoxControl = TestString.addcontrol(FormControlType::CheckBox,int2Str(ReqIntValue)+'IsNoNE');
FormCheckBoxControl.label("Is None");
this.controlMethodOverload(true);
}
Now We want to achieve a functionality which would be implemented by this code below if all the control names were hardcoded individually
[Control("CheckBox")]
class CheckboxControlName
{
public boolean modified()
{
boolean ret;
ret = super();
if(CheckboxControlName.value == true)
{
FormStringControl.text('None');
}
return ret;
}
}
However the functionality we would desire to have is to have to write this method only once and be able to use for all the checkbox controls that are formed by the first part of the code.
Regards,
Hitesh.