JavaScript
{dialog.object}editorCommit Method
Syntax
{dialog.object}.editorCommit(UXEditorSet [,flagCloseEditorSet]);
Arguments
- UXEditorSetstring
The name of the EditorSet you want to commit or a specific editor using the syntax 'editor:UXEditorName'
- flagCloseEditorSetboolean
Default value is true. Specify if the EditorSet should stay open (false), or be closed (true) after the value is committed.
Description
Commits the change made in the Editor to the value you are editing.
Example
//Assume that an Editor in an EditorSet (called 'EDITORSET_1') has a Save button. //You would put this code in the Save button {dialog.object}.editorCommit('EDITORSET_1');
When an EditorSet is committed, the code defined in the 'Commit Editor Javascript' property for the active 'Editor' will be executed.
See Also