sc_field_disabled("Field_Name = True/False", "Parameter")

This macro is used to block a field to get any data that would be typed on it.

Fields that is going to be blocked should be followed by the option "true" (default) or "false".

The parameter is optional, "I" it's used only to block de addition of new records, "U" to block only the update, in case of the parameter has not been informed the Scriptcase will use both options.

 

Ex. 1: Blocks only one field for addition and update.
sc_field_disabled("Field_01");

Ex. 2: Unblocking a field for addition and update.
sc_field_disabled("Field_02=false");

Ex. 3: Blocks several fields, only for an update.
sc_field_disabled("Field_01; Field_02; Field_03", "U");

Ex. 4: Combination of the block and unblock of several fields, for addition and update.
sc_field_disabled("Field_01=true; Field_02=false; Field_03=true");