Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

GetPicklistBusComp Method

GetPicklistBusComp returns the pick business component associated with the specified field in the current business component.





Name of the field with a picklist specified; used to obtain the pick business component


The pick business component of the current business component and identified field


The returned pick business component can be used to operate on the picklist. The GetPickListBusComp should be destroyed after use by using the Nothing function.

NOTE:  When a record is picked on a constrained picklist using the GetPickListBusComp and Pick methods, the constraint is active. Therefore, the retrieved picklist business component contains only those records that fulfill the constraint.

To pick a value from a picklist in Siebel VB

  1. Use GetPicklistBusComp to create an instance of the pick list business component.
  2. Navigate in the picklist business component to the record you want to pick.
  3. Use Pick to pick the value.
  4. Use Set objBCPickList = Nothing to explicitly destroy the picklist business component instance.
Used With

COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script


The following example is in Siebel eScript:

if (this.GetFieldValue("City") == "San Mateo")
   var oBCPick = this.GetPicklistBusComp("State");
   with (oBCPick)
      SetSearchSpec("Value", "CA");
   oBCPick = null;

The following example is for Java Data Bean. It selects a product from a picklist.

Sieb_busObject = Sieb_dataBean.getBusObject("Service Request");
Sieb_busComp = Sieb_busObject.getBusComp("Service Request");

. . .

SiebelBusComp productBusComp = Sieb_busComp.getPicklistBusComp("Product");
productBusComp.setSearchSpec("Name", "ATM Card");
isRecord =productBusComp.firstRecord();
   if (isRecord)

catch (SiebelException e)
   System.out.println("Error in Pick " + e.getErrorMessage());

The following example is in Siebel VB:

If Me.GetFieldValue("City") = "San Mateo" Then
   Set oBCPick = Me.GetPicklistBusComp("State")
   With oBCPick
      .SetSearchSpec "Value", "CA"
      .ExecuteQuery ForwardOnly
      If .FirstRecord Then .Pick
   End With
   Set oBCPick = Nothing
End If

See Also

FirstSelected Method
GetMVGBusComp Method

Siebel Object Interfaces Reference