The CanNavigate method determines whether or not the user can navigate a control. It returns one of the following values:
true. The user can navigate the control.
false. The user cannot navigate the control.
It uses the following syntax:
CanNavigate(activeControl.GetFieldName())
For example, the following code uses the CanNavigate method to set up a variable named canNavigate:
var controlSet = this.GetPM().Get("GetControls");
for(var control in controlSet){
if(controlSet.hasOwnProperty(control)){ var canNavigate =
this.GetPM().ExecuteMethod("CanNavigate", controlSet[
control ].GetName());
}
}
The following example identifies the controls in a set of controls that reside in an applet proxy. You can then use the value that CanNavigate returns to determine whether or not Siebel Open UI can render a control as a link:
var controlSet = this.GetPM().Get("GetControls");
for(var control in controlSet){
if(controlSet.hasOwnProperty(control)){
var canNavigate = this.GetPM().ExecuteMethod("CanNavigate", controlSet[
control ].GetName());
}
}