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.
  • Attachment
  • Calendar
  • Drop-down box
  • GIS map
  • Grid
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.
  • Calendar
  • Check box
  • Color selector
  • Drop-down box
  • Edit box
  • GIS map
  • HTML area
  • Label
  • Map
  • Radio button array
  • Tab pane
  • Tree
resetValue Resets the control to the original value. This happens when the Clear button is clicked. Any control that can have its value reset to the original value.
  • Check box
  • Drop-down box
  • Edit box
  • Radio button array
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.
  • Calendar
  • Check box
  • Color selector
  • Drop-down box
  • Edit box
  • GIS map
  • HTML area
  • Label
  • Map
  • Radio button array
  • Tab pane
  • Tree
setEnabled Enables or disables the control. Any control that has the DisabledCanEdit property associated with it.
  • Check box
  • Drop-down box
  • Edit box
  • Grid
  • HTML area
setTitle Sets the title of the container. Control containers that have a title.
  • Grid
  • Group box
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.
  • Drop-down box
  • Edit box
  • Grid
  • Group box
toggleExpandCollapse Expands or collapses the control. Controls that have a Hide/Show button.
  • Attachments
  • Grid
  • Group box
  • HTML area
toggleTooltip Turns the tooltip off or on. Any control that supports tooltips.
  • Button
  • Check box
  • Drop-down box
  • Edit box
  • Label
validate Validates the control and returns an object with these fields:
  • field: Field that validation messages are applied to.
  • msg: Validation message.
  • valid: Indicates whether the control is valid.
Any control that can be validated.
  • Drop-down box
  • Edit box
  • Grid
  • HTML area