Skip to main content
Represents HTML elements in the SuperOffice UI.

Constructors

HtmlElement()

Initializes a new instance of the HtmlElement class.

Methods

clearValue()

Clears any selected values from elements that support this property.
Returns: CRMScript.Global.Void

getFieldValue(String)

Returns the value of a specific field.
Returns: CRMScript.Global.String - The value of field.

getNextTabIndex()

Increments the index counter and returns.
Returns: CRMScript.Global.Integer - The next valid tab index number.
The HTML tabindex attribute specifies the tab order of an element. It determines the sequence of entering fields with Tab or Shift+Tab.

getTabIndexString()

Retrieves the tabulator index string of the element A variant of <code>getTabIndexString()</code> that omits element ID if it is the 1st element.
Returns: CRMScript.Global.String - The tabulator index string of the element.
The HTML tabindex attribute specifies the tab order of an element. It determines the sequence of entering fields with Tab or Shift+Tab.

getTabIndexString(Bool)

Retrieves the tabulator index string of the element and omits element ID if it is the 1st element.
Returns: CRMScript.Global.String - The tabulator index string of the element.
The HTML tabindex attribute specifies the tab order of an element. It determines the sequence of entering fields with Tab or Shift+Tab.

getTypeName()

Returns the element type. For example, HtmlAnchorLine or HtmlGrid.
Returns: CRMScript.Global.String - The element type.
Look up specific elements in the bLogic screen element reference.

isEmpty()

Returns true if the HtmlElement says it is empty.
Returns: CRMScript.Global.Bool - True if the HtmlElement says it is empty; otherwise, false.
That an element is empty means different things depending on the element type. For example, a list element should be empty if it has no rows, but a code element should be empty if it contains no text.

setDisabled(Bool)

Toggles whether the element is visible or invisible.
Returns: CRMScript.Global.Void
Commonly used in combination with role-based access.

setErrorMessage(String)

Sets an error message above the element if the form is posted.
Returns: CRMScript.Global.Void
Used to inform users that something went wrong and attempt to help them out.
Example:

setFieldValue(String,Map)

Sets one or more field values on an element.
Returns: CRMScript.Global.Void Example:

setFromCgi()

Called when the element should find its values from the CGI variables.
Returns: CRMScript.Global.Void
Commonly used for screens containing forms.

setInfoMessage(String)

Sets an info message above the element if the form is posted.
Returns: CRMScript.Global.Void
Used to display the text of a purely informative nature.

setNotEditable(Bool)

Toggles whether the element can be edited (for those elements that support this property).
Returns: CRMScript.Global.Void
Commonly used in combination with role-based access.Available from 3.1.8.36

setValue(String)

Sets the value of a specific element.
Returns: CRMScript.Global.Void Example:

toBool()

Returns the value of the element as a Bool.
Returns: CRMScript.Global.Bool - The boolean representation of the element.

toInteger()

Returns the element value as an integer.
Returns: CRMScript.Global.Integer - The numeric representation of the element.

toString()

Returns the value of the element as a String.
Returns: CRMScript.Global.String - The string representation of the element.