View.getControl(win, controlName)
JavaScript API Reference/Ab.view.View object
View.getControl(win, controlName)
Return control instance specified by the control name and its target window or frame name.
Parameters:
-
win
(String or Window object reference): window or frame name, or one of the following predefined names:
•self
: this window object;
•opener
: window object that has opened this dialog window (use in JS code within a dialog);
•dialog
: currently opened dialog window (use in JS code within an opener window);
-
controlName
(String): unique name of the control; for custom controls, this is the name that the control has used to register itself; for standard panel controls, this is the value of the panelid
attribute.
Example:
Get the console/form control instance from the console frame.
var console = View.getControl('console', 'project_search_console');