Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >
Pick
The Pick method places the currently selected record in a picklist business component into the appropriate fields of the parent business component.
Syntax
oBusComp.Pick
Returns
Not applicable
Usage
Pick must be invoked on the picklist's business component. When a record is picked on a constrained picklist using the GetPickListBusComp and Pick methods, the constraint is active. Therefore, only records that fulfill the constraint can be retrieved.
Used With
Server Script, Mobile/Dedicated Web Client Automation Server, COM Data Control, COM Data Server, Java Data Bean, CORBA Object ManagerExample
This Siebel VB example sorts the values in the Sales Stage field.
Sub BusComp_NewRecord
Dim oBC as BusComp
set oBC = me.GetPickListBusComp("Sales Stage")With oBC
.ClearToQuery
.ActivateField "Sales Stage Order"
.SetSortSpec "Sales Stage Order"
.ExecuteQuery ForwardOnly
if .FirstRecord then .Pick
End Withset oBC = Nothing
End SubHere is the same example in Siebel eScript.
function BusComp_NewRecord ()
{
var oBC = this.GetPickListBusComp("Sales Stage");with (oBC)
ClearToQuery();
ActivateField("Sales Stage Order");
SetSortSpec("Sales Stage Order");
ExecuteQuery(ForwardOnly);
if (FirstRecord())
Pick();
}oBC = null;
}See Also
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |