CanUpdate Method

The CanUpdate method determines whether or not Siebel Open UI can update a control. It returns one of the following values:

  • true. The user can update the control.

  • false. The user cannot update the control.

It uses the following syntax:

CanUpdate(control_name)

where:

  • control_name identifies the name of the control that CanUpdate examines.

The following example identifies the controls that exist in a set of controls that reside in an applet proxy. You can then use the value that CanUpdate returns to write custom code in the physical renderer that modifies a control that Siebel Open UI can update:

var controlSet = this.GetPM().Get("GetControls");
for(var control in controlSet){
  if(controlSet.hasOwnProperty(control)){
   var canupdate = this.GetPM().ExecuteMethod("CanUpdate", controlSet[ control    
].GetName());
  }
}

For an example that uses the CanUpdate method, see UpdateRecord Method.