Functions
The Infor Public Sector JavaScript API exposes these public functions:
Function | Description | Applies to | Controls |
---|---|---|---|
addStateToRequest | Appends the control state to _Data. | Complex controls that must send control state to cblock. |
|
focus | Sets the focus on the control. | Any control on which focus can be set. | Edit box |
getChildControl | Returns a child jQuery control that is not usually added to the control cache. | Any control that has child controls that are not in the control cache. | Grid |
getControlValue | Gets the value of the control. | Controls that can have a value. |
|
resetValue | Resets the control to the original value. This happens when the | button is clicked.Any control that can have its value reset to the original value. |
|
setControlStyle | Handles calls made from
CmdSetControlStyle |
Any control that must set the style on the control differently. | Check box |
setControlValue | Sets the value of the control. | Controls that can have a value. |
|
setEnabled | Enables or disables the control. | Any control that has the DisabledCanEdit
property associated with it. |
|
setTitle | Sets the title of the container. | Control containers that have a title. |
|
setValidationMessage | Allows CmdSetValidationMsg to call
setValidationMsg( id, msg, fieldLevel,
timeout, targetViewId ) in cblock. setValidationMsg then calls this
function, showing a validation message. |
Any control that can set a validation message on its parent. |
|
toggleExpandCollapse | Expands or collapses the control. | Controls that have a | button.
|
toggleTooltip | Turns the tooltip off or on. | Any control that supports tooltips. |
|
validate | Validates the control and returns an object with these fields:
|
Any control that can be validated. |
|