Pick Method for a Business Component
The Pick method places the currently chosen record in a pick business component into the appropriate fields of the parent business component. This method does not return any information.
You cannot use the Pick method to modify the record in a read-only picklist field.
Format
BusComp.Pick
No arguments are available.
Usage
For more information, see Picking a Record on a Constrained Picklist in GetPicklistBusComp Method for a Business Component.
Used With
COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script
Examples
The following 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
.SetSearchSpec "Sales Stage", "2 - Qualified"
.ExecuteQuery ForwardOnly
if .FirstRecord then .Pick
End With
set oBC = Nothing
End Sub
The following is the equivalent example in Siebel eScript:
function BusComp_NewRecord ()
{
var oBC = this.GetPicklistBusComp("Sales Stage");
with (oBC)
{
ClearToQuery();
SetSearchSpec("Sales Stage", "2 - Qualified");
ExecuteQuery(ForwardOnly);
if (FirstRecord())
Pick();
}
oBC = null;
}