Siebel Object Interfaces Reference > Interfaces Reference > Control Methods >

GetProperty Method


The GetProperty method returns the value of the property of a control.

Syntax

controlVar.GetProperty(propName)

Argument
Description

propName

The name of the property to be retrieved

Returns

The value of the property of a control.

Usage

GetProperty can be used with the following controls: CheckBox, ComboBox, TextBox, TextArea, and Label.

Use GetProperty to call the following properties: Background Color, Enabled, FontType, FontColor, FontSize, FontStyle, Height, Width, Read Only, Visible. For more information on these properties, see Table 35.

If more than one property is to be retrieved, each must be retrieved in a separate statement.

Used With

Browser Script

Example

This code sample uses GetProperty to return values for FontSize, Background Color, Width, and Height:

theApplication().SWEAlert("checkbox.FontSize : " + objCheckBox.GetProperty("FontSize"));
theApplication().SWEAlert("checkbox.BgColor : " + objCheckBox.GetProperty("BgColor"));
theApplication().SWEAlert("checkbox.Width : " + objCheckBox.GetProperty("Width"));
theApplication().SWEAlert("checkbox.Height : " + objCheckBox.GetProperty("Height"));

Siebel Object Interfaces Reference Copyright © 2008, Oracle. All rights reserved.