Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >
ActivateMultipleFields Method
Use ActivateMultipleFields to activate data for the fields specified in the property set. Syntax
BusComp.ActivateMultipleFields(SiebelPropertySet sps)
|
|
SiebelPropertySet |
Property set containing a collection of properties representing the fields that are to be activated |
Returns
TRUE if success; FALSE if failure Used With
COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script Example
The following example is for Java Data Bean: import com.siebel.data.*; ... //Create Siebel Data Bean. //login into Siebel 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 retrieves the First Name and Last Name of the first contact found: var ContactBO = TheApplication().GetBusObject("Contact"); var ContactBC = ContactBO.GetBusComp("Contact"); with (ContactBC) { ClearToQuery(); SetViewMode(AllView); var fieldsPS = TheApplication().NewPropertySet(); var valuesPS = TheApplication().NewPropertySet(); fieldsPS. SetProperty("Last Name", ""); fieldsPS.SetProperty("First Name", ""); ActivateMultipleFields(fieldsPS); ExecuteQuery(); if (FirstRecord()) { GetMultipleFieldValues(fieldsPS, valuesPS); var slName = valuesPS.GetProperty("Last Name"); var sfName = valuesPS.GetProperty("First Name"); } }
See Also
SetMultipleFieldValues Method GetMultipleFieldValues Method
|