Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >
SetUserProperty
Sets the value of a named business component user property. The user properties are similar to instance variables of a BusComp.
Syntax
oBusComp.SetUserProperty propertyName, newValue
Argument Description propertyName String containing the name of the user property to set newValue String containing the property valueReturns
Not applicable
Usage
The advantage of user properties is that they can be accessed from anywhere in the code (including from other applications through COM) using GetUserProperty. An instance variable, on the other hand, can be accessed only from within Siebel VB from the same object on which the variable is declared.
The value of the property is reset every time you instantiate a new business component.
NOTE: SetUserProperty does not interact directly with user properties defined in Siebel Tools.
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 a Siebel VB example.
Sub BusComp_SetFieldValue (FieldName As String)
Select Case FieldName
Case "Committed"
me.SetUserProperty "Flagged", "Y"
End Select
End SubHere is the same example in Siebel eScript.
function BusComp_SetFieldValue (FieldName)
{
switch (FieldName)
{
case "Committed":
this.SetUserProperty("Flagged", "Y");
}
}See Also
Bookshelf Home | Contents | Index | Search | PDF |
Siebel Object Interfaces Reference Published: 18 June 2003 |