Siebel Object Interfaces Reference > Interfaces Reference > Property Set Methods >

GetProperty


This method returns the value of a property when given the property name.

Syntax

oPropSet.GetProperty(propName)

Parameter
Description
propName
A string representing the name of a property as returned by GetFirstProperty or GetNextProperty

Returns

A string representing the value stored in the property indicated by propName, or an empty string ("") if the property does not exist

Used With

Browser Script, Server Script, Web Client Automation Server, Mobile/Dedicated Web Client Automation Server, COM Data Control, COM Data Server, Java Data Bean

Example

The following fragment of Siebel eScript code receives a set of input properties used with the Shipping Engine service described in Service_PreInvokeMethod.

var Inputs = TheApplication().NewPropertySet();

var sShipper = Inputs.GetProperty("Shipping Company");
var dWeight = Val(Inputs.GetProperty("Weight"));
var dSize = Val(Inputs.GetProperty("Total Dimensions"));
var iZone = Val(Inputs.GetProperty("Zone"));

Here is an example for C++:

CORBA::string_var inputType = inputPS.type;

or

char typeBuffer[40];

strcpy(typeBuffer, inputPS.type);

See Also

GetFirstProperty
GetNextProperty
SetProperty


 Siebel Object Interfaces Reference 
 Published: 18 June 2003