Other objects
Object | Description | Example |
---|---|---|
service.callService() | Executes the service. | |
service.connectEvent(eventName, callbackFunction) | The only supported event is
onCallFinished, which is called every
time after the service mapping is executed. It is passed two
parameters:
If the error is being handled by javascript, setting
Resister these events in the Applications onStart event so that they are only registered once. |
|
service.disconnectEvent(eventHandle) | Disconnects the event handler specified by the passed-in event handle object that was returned by a service.connectEvent call. |
Object | Description | |
---|---|---|
action.activate() | Triggers this button, which cancels, submit or
save the form. Note: If a button is hidden by a Rule, you can try
and fire it. However, the server rejects the
submission. |
|
action.addClasses(classes) | Adds a list of custom class names to an action for dynamic CSS styling. The classes parameter can be a single class name, multiple class names separated by spaces, or an Array of class names. If any of the given class names are invalid CSS class names, then no classes are added and false is returned. |
|
action.getActionType() | Returns a string that identifies the type of the button. Values are Cancel, Submit, and Save. | |
action.getActive() | Returns true if this button is active, and false if it is disabled. | |
action.getClasses() | Returns an Array of custom class names currently applied to an action. | |
action.getId() | Returns the unique ID (within the application) of
this action button S_Submit. |
|
action.getTitle() | Returns the user-defined title of this button. | |
action.getVisible() | Returns true if this button is visible, or false if it is hidden by a rule or JavaScript™. | |
action.removeClasses(classes) | Removes a list of custom class names from an action for dynamic CSS styling. The classes parameter can be a single class name, multiple class names separated by spaces, or an Array of class names. |
|
action.setActive(active) | If active is true, then the button is made active. If false, the button is disabled. | |
action.setFocus() | Causes this button to receive focus, if possible. | |
action.setTitle(title) | Sets the title for the button. | |
action.setVisible(visible) | Sets whether this action is visible. Note: If
this item is made invisible by a rule, then you cannot unhide it
by calling this function. |