JavaScript
{dialog.object}editorFromControl Method
Syntax
{dialog.object}.editorFromControl(UXEditorSet, UXEditor, UXControlName);
Arguments
- UXEditorSetstring
The name of the EditorSet you want to open.
- UXEditorstring
The name of the Editor within the EditorSet that you want to show.
- UXControlNamestring
The name of the control whose value you want to edit.
Description
Displays an EditorSet showing the specified Editor in the EditorSet to edit the value in the specified UX control. Contrast with the .editorFromValue() method which is used to edit an arbitrary value.
Discussion
Typically used in mobile applications where you want to define special editors (that display in a pop-up window or Panel) to edit control values rather than editing the values directly in the control.
Example
//Edit the value in the 'FIRSTNAME' control using 'EDITOR1' in EditorSet 'EDITORSET_1' {dialog.object}.editorFromControl('EDITORSET_1','EDITOR1','FIRSTNAME');
See Also