Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >

SetMultipleFieldValues


SetMultipleFieldValues assigns a new value to the fields specified in the property set for the current row of the business component.

Syntax

oBusComp.SetMultipleFieldValues oPropertySet

Argument
Description
oPropertySet
Property set containing a collection of properties representing the fields to be set, and their values

Returns

Not applicable

Usage

This method can be used only on fields that are active. The FieldName parameter in the property must be set exactly as the field name appears in Siebel Tools, with the correct case. For example, in

oPropertySet.SetProperty "Name","Acme"

the FieldName is "Name" and the FieldValue is "Acme".

Used With

Server Script, Mobile/Dedicated Web Client Automation Server, COM Data Control, COM Data Server, Java Data Bean, CORBA Object Manager

Example

Here is an eScript example:

var bo = TheApplication().GetBusObject("Account");
var bc = bo.GetBusComp("Account");
var propSet = TheApplication().NewPropertySet();

   with (bc) {
   with (propSet) {
      SetProperty("Name", "");
      SetProperty("Location", "");
      SetProperty("Account Status");
      SetProperty("Type", "");
   }

   //Activate all fields that are to be set
   ActivateMultipleField(propSet);
   NewRecord (NewBefore);

   propSet.Reset();

with (propSet) {
      SetProperty ("Name", Acme");
      SetProperty ("Location", "Portsmouth");
      SetProperty("Account Status", "Active");
      SetProperty("Type", "Commercial");
}

SetMultipleFieldValues (propSet);
WriteRecord();

   }

bc = null;
bo = null;
propSet = null;

See Also

ActivateMultipleFields
GetMultipleFieldValues


 Siebel Object Interfaces Reference 
 Published: 18 June 2003