Version
Version | Function Changes |
---|---|
11.0.1 | Add collapse, expand, submit interface |
getWidgetByName
Method | getWidgetByName(name) | Get the widget in the parameter pane, and use it in combination with the widget interface |
---|---|---|
Parameter | name: string | widget name, string |
Return value | object | widget object, need to be used in conjunction with the attributes/methods of the widget |
Example | Example 1: If the acquired parameter pane is defined as parameterContainer, get the drop-down box widget comboBox0 on the parameter pane
Example 2: Get the drop-down box widget comboBox0 on the report parameter pane _g().getParameterContainer().getWidgetByName("comboBox0"); | |
Application example | After obtaining the widget on the parameter pane, assign it a value to realize the linkage of the widget value in the parameter pane: Click to download the template: | |
Mobile | Support mobile terminal |
collapse
Method | collapse() | Collapse parameter pane |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the acquired parameter pane object is defined as parameterContainer, collapse the parameter pane Example 2: Collapse the parameter pane after getting it _g().getParameterContainer().collapse(); | |
Application example | Click the toolbar button to collapse the parameter pane: Click to download the template: Customize toolbar buttons to control the expansion and collapse of the parameter pane.cpt | |
Mobile | Support mobile terminal |
expand
Method | expand() | Expand parameter pane |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the acquired parameter pane object is defined as parameterContainer, expand the parameter pane Example 2: Expand the parameter pane after getting it _g().getParameterContainer().expand(); | |
Application example | Click the toolbar button to expand the parameter pane: Click to download the template: Customize toolbar buttons to control the expansion and collapse of the parameter pane.cpt | |
Mobile | Support mobile terminal |
submit
Method | submit() | Query after submitting automatically |
---|---|---|
Parameter | - | - |
Return value | void | |
Example | Example 1: If the acquired parameter pane object is defined as parameterContainer, query after submitting automatically Example 2:The report query after submitting automatically _g().getParameterContainer().submit(); | |
Application example | After selecting the value from the drop-down box in the parameter pane, you can query without clicking the query button, as shown in the following figure: Click to download the template: | |
Mobile | Support mobile terminal |