Configuring Siebel Open UI to Pick a Value from a Picklist

This topic describes how to configure Siebel Open UI to pick a value from a picklist.

To configure Siebel Open UI to pick a value from a picklist

  1. Use a JavaScript editor to open the JavaScript file that you must modify. This file resides on the client.

  2. Add code that uses the Pick method to pick the value.

    For example, add the following code to the method that Siebel Open UI uses to register the service:

    retObj=currRetValue=this.GetFieldValue("City")
    if(retObj.retVal === "San Mateo")
    {
      var oBCPick = this.GetPicklistBusComp("State");
      oBCPick.SetSearchSpec("Value", "CA");
      oretObj=currRetValue=oBCPick.ExecuteQuery(ForwardOnly);
      retObj=currRetValue=oBCPick.FirstRecord();
      if(oBCPick.CheckActiveRow()){
        oBCPick.Pick();
      }
    }
    

    This code configures Siebel Open UI to use the GetPicklistBusComp method to create an instance of the picklist business component. For more information, see Pick Method.