Mysterious Read Only Error in Script
Hi,
I have a form applet (based on Service Agreement BC) where the control "Control1 Flag" is exposed and it is a checkbox. We have made it read only using applet control property "Read Only".
This control corresponds to the BC Field "Field1 Flag".
In the BC server script, in PreSetField Value event, we have a custom script where based on some conditions we are setting this flag value to "Y" or "N" using the following statement.
Upon execution, the flag is getting set properly but we have this error seen in the log file "This operation is not available for read only field 'Field1 Flag'.(SBL-DAT-00402)". Because of this error, the succeeding statements in the if.. block are not executed.
I have a form applet (based on Service Agreement BC) where the control "Control1 Flag" is exposed and it is a checkbox. We have made it read only using applet control property "Read Only".
This control corresponds to the BC Field "Field1 Flag".
In the BC server script, in PreSetField Value event, we have a custom script where based on some conditions we are setting this flag value to "Y" or "N" using the following statement.
if(FieldName = "Start Date")
{
{
....
....
....
if(condition == true)
...
...
....
....
if(condition == true)
this.SetFieldValue("Field1 Flag","Y");
else
this.SetFieldValue("Field1 Flag","N");
......
...
}
Upon execution, the flag is getting set properly but we have this error seen in the log file "This operation is not available for read only field 'Field1 Flag'.(SBL-DAT-00402)". Because of this error, the succeeding statements in the if.. block are not executed.
0