[solved] How to use JavaScript to get widgets

1 #
ConnieWang
Post time 2020-5-15 09:59:16 | Show the author posts only |Read mode Print Prev. thread Next thread
Is there any who is familiar with the ways to get widgets and read their values using JavaScript?

Best Answer

1-Pagination Preview a-Get parameter panel widget in parameter panel:this.options.form.getWidgetByName("a"); b-Get the parameter panel widget in the table:_g().parameterEl.getWidgetByName ...
Reply

Use magic Report

Recommends1

Jump to specified page
2 #
Cherly
Post time 2020-5-15 10:04:49 | Show the author posts only
1-Pagination Preview

a-Get parameter panel widget in parameter panel:this.options.form.getWidgetByName("a");
b-Get the parameter panel widget in the table:_g().parameterEl.getWidgetByName("a");

2-Data Entry Preview
a-Get parameter panel widget in parameter panel:this.options.form.getWidgetByName("a");
b-Get the parameter panel widget in the table:_g().parameterEl.getWidgetByName("a");
c-Parameter panel to get the widgets in the table:contentPane.getWidgetByName("a");  OR
contentPane.getWidgetByCell("A1");
d-Get the widgets in the table:
contentPane.getWidgetByName("a");  OR
contentPane.getWidgetByCell("A1");

3-Dashboard Preview
a-Get parameter panel widget in parameter panel:this.options.form.getWidgetByName("a");
b-Parameter panel to getwidgets:
_g().getWidgetByName("a");
c-The widget in the body gets the parameter panel widget:_g().parameterEl.getWidgetByName("a");
d-The widgets in the body get each other:
_g().getWidgetByName("a");
e-Report block to get the widgets in the body:
window.form=this.options.form;
window.form.getWidgetByName("report0");
Tip: All JS is just to get the widget, if you need to get the value of the widget, please add getValue (), if you need to assign a value to the widget, please add setValue ().
Reply
You have to log in before you can reply Login | Register


0following

0fans

2Posts

Post