For a check box I am trying to set the default value to checked.
I set the value in the properties to 1
Didn't appear checked by default.
Restarted AOS, did Full compile and CIL generation.
Still no luck.
Any Ideas what I am missing?
For a check box I am trying to set the default value to checked.
I set the value in the properties to 1
Didn't appear checked by default.
Restarted AOS, did Full compile and CIL generation.
Still no luck.
Any Ideas what I am missing?
Try inputing the value to 1 in the run method or classDeclaration with the FormCheckBoxControl method.
[checkbox value] = FormCheckBoxControl.checked(1);
If control is not directly bound to the datasource record, instead of this:
ctrl.checked(true);
use this:
ctrl.value(true);
If the checkbox is linked to a DataField, you should put the default value on the initValues
method of the Data Source:
tableName.fieldNoYes = NoYes::Yes;
If the checkbox is not linked to data, you can check it on the run method (after super() call) of the form (assuming the control has the AutoDeclaration
property to Yes
.
CheckBoxControl.checked(true);