Control Methods for Browser Script

The following table describes a summary of the control methods you can use in Browser Script.

Method Description Format

Applet Method for a Control

Returns the name of the applet where a control resides.

var oControl;

var oApplet;

oApplet = oControl.Applet();

BusComp Method for a Control

Returns the name of the business component that an applet references. The control resides in this applet.

var oControl;

var busComp;

busComp = oControl.BusComp();

GetProperty Method for a Control

Returns the value of the property of a control.

var oControl;

var propVal;

propVal = oControl.GetProperty(propName);

GetValue Method for a Control

Returns the value of a control.

var oControl;

var sValue;

sValue = oControl.GetValue();

Name Method for a Control

Returns the name of a control.

var oControl;

var sName;

sName = oControl.Name();

SetProperty Method for a Control

Sets the visual properties of a control.

var oControl;

oControl.SetProperty(propName, propValue);

SetValue Method for a Control

Sets the contents of a control.

var oControl;

oControl.SetValue(value;