JavaScript API allows you to work with the "edit" controls, manage search panel. JavaScript API objects are available in the JavaScript OnLoad event of the appropriate page.
Objects
Object |
Description |
Provides asynchronous functions for JavaScript events. |
|
Allows to work with the "edit" controls. |
|
Allows working in-depth with the date values. |
|
Allows to process clicking the Cancel button in the Inline mode on the Add/Edit pages. |
|
Represents the current page object. |
|
SearchController (deprecated) |
Allows to manage the search panel. |
Allows to manage search fields on the search panel. |
The JavaScript API works with Add/Edit/View/Register pages.
For example, use the following code to make the field red on the View page.
var ctrl = Runner.getControl(pageid,'action');
ctrl.addStyle('color: red');
Examples:
•Ask for confirmation before saving a record
•Change font in "edit" controls
•Change width of edit box with AJAX popup
•Change width of text field on Quick Search panel
•How to calculate values (totals) on the fly
•How to control Inline Add/Edit functionality from script
•How to enable/disable a button
•How to hide 'Edit selected'/'Delete selected' buttons
•How to refresh List page after Edit in popup
•How to control Inline Add/Edit functionality from script
•Show dropdown list of US states if US was selected in country list
See also:
•JavaScript API: Control object > addStyle()
•JavaScript API: Control object > getControl()