If you want to modify via script a “read-only” field, in Siebel 7.7 don’t works. To avoid this we should do:
BusComp.InvokeMethod("SetAdminMode", flag)
Argument
flag
Description
"TRUE" or "FALSE". Flag to specify whether the business component should be executed in Admin mode.
In order to allow visibility rules for the business component, it’s required to set the flag to TRUE before of SetFieldValue (then it’s required to set the flag to FALSE).
For instance:
function WebApplet_PreInvokeMethod (MethodName){
if (MethodName =="Sample"){
[...]
BusComp.InvokeMethod("SetAdminMode", "TRUE");
BusComp.SetFieldValue("Example_Read_Only_Field","Example");
BusComp.WriteRecord();
BusComp.InvokeMethod("SetAdminMode", "FALSE");
[...]
}
return(ContinueOperation);
}