ActivateMultipleFields Method for a Business Component
The ActivateMultipleFields method activates multiple fields. This method returns one of the following values:
TRUE if the activation is successful
FALSE if the activation is not successful
Format
BusComp.ActivateMultipleFields(SiebelPropertySet)
The following table describes the arguments for the ActivateMultipleFields method.
Argument | Description |
---|---|
SiebelPropertySet |
Property set that identifies a collection of properties. These properties identify the fields that Siebel CRM must activate. |
Used With
COM Data Control, COM Data Server, Siebel Java Data Bean, Mobile Web Client Automation Server, Server Script
Examples
The following example is for Siebel Java Data Bean:
import com.siebel.data.*;
...
//Create Siebel Java Data Bean.
//log in to Siebel Java Data Bean
...
//Create Siebel Bus Object.
//Get the Bus Object from SiebelDataBean
...
//Create Siebel Bus Comp siebBusComp
//Get the business component using SiebelBusObject
SiebelPropertySet ps = new mdata_bean.NewPropertySet();
ps.setProperty("Account Products","");
ps.setProperty("Agreement Name","");
ps.setProperty("Project Name","");
ps.setProperty("Description","");
ps.setProperty("Name","");
siebBusComp.ActivateMultipleFields(ps);
...
The following Siebel eScript example queries the Contact business component and returns the First Name and Last Name of the first contact that it finds:
var ContactBO = TheApplication().GetBusObject("Contact");
var ContactBC = ContactBO.GetBusComp("Contact");
with (ContactBC)
{
SetViewMode(AllView);
var fieldsPS = TheApplication().NewPropertySet();
var valuesPS = TheApplication().NewPropertySet();
fieldsPS. SetProperty("Last Name", "");
fieldsPS.SetProperty("First Name", "");
ActivateMultipleFields(fieldsPS);
ClearToQuery();
ExecuteQuery(ForwardBackward);
if (FirstRecord())
{
GetMultipleFieldValues(fieldsPS, valuesPS);
var slName = valuesPS.GetProperty("Last Name");
var sfName = valuesPS.GetProperty("First Name");
}
}
Related Topics
For more information, see the following topics: