SetMultipleFieldValues Method
The SetMultipleFieldValues method sets new values in the fields of the current record of a business component. It uses the following syntax:
BusComp.SetMultipleFieldValues (oPropertySet)
The FieldName argument that the property set contains must match the field name that Siebel Tools displays. This match must be exact, including upper and lower case characters.
In the following example, the FieldName is Name and the FieldValue is Acme:
oPropertySet.SetProperty ("Name","Acme")
Note the following:
If an error occurs in the values of any of fields that the property set specifies, then Siebel Open UI stops the process it is currently running.
You can use the SetMultipleFieldValues method only on a field that is active.
You must not use the SetMultipleFieldValues method on a field that uses a picklist.
Example
The following example in Siebel eScript uses the SetMultipleFieldValues method to set the values for all fields that the property set identifies, including the Name, Account, and Sales Stage:
var currRetValue={err:false}, retObj;
varmodel = SiebelApp.S_App.GetModel();
var bo = model.GetBusObj("Opportunity");
var bc = bo.GetBusComp("Opportunity");
var ps =SiebelApp.S_App.NewPropertySet();
ps.SetProperty ("Name", "Call Center Opportunity");
ps.SetProperty ("Account", "Marriott International");
ps.SetProperty ("Sales Stage", "2-Qualified");
bc.ActivateMultipleFields(ps);
currRetValue=bc.NewRecord();
currRetValue=bc.SetMultipleFieldValues(ps);
ps = null;
currRetValue=bc.WriteRecord();