Siebel Object Interfaces Reference > Interfaces Reference > Business Component Methods >
Sets the value of a named business component user property. The user properties are similar to instance variables of a BusComp.
BusComp.SetUserProperty propertyName, newValue
String containing the name of the user property to set
String containing the property value
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.
COM Data Control, COM Data Server, Java Data Bean, Mobile Web Client Automation Server, Server Script
The following example is in Siebel VB:
Sub BusComp_SetFieldValue (FieldName As String)
Select Case FieldName
me.SetUserProperty "Flagged", "Y"
The following is the equivalent example in Siebel eScript:
function BusComp_SetFieldValue (FieldName)