Parameter Panel API

  • Last update:  2022-02-09
  • Version

    VersionFunction Changes
    11.0.1
    Add collapse, expand, submit interface

    getWidgetByName

    MethodgetWidgetByName(name)Get the widget in the parameter pane, and use it in combination with the widget interface
       Parametername: stringwidget name, string
     Return valueobject 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

    parameterContainer.getWidgetByName("comboBox0");

    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: 

    Get the widget on the parameter pane.cpt

    1.gif

    MobileSupport mobile terminal

    collapse

    Methodcollapse()Collapse parameter pane
      Parameter--
     Return valuevoid
        Example

    Example 1: If the acquired parameter pane object is defined as parameterContainer, collapse the parameter pane

    parameterContainer.collapse();

    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

    2.gif

    MobileSupport mobile terminal

    expand

    Methodexpand()Expand parameter pane
       Parameter--
     Return valuevoid
        Example

    Example 1: If the acquired parameter pane object is defined as parameterContainer, expand the parameter pane

    parameterContainer.expand();

    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

    3.gif

    MobileSupport mobile terminal

    submit

    Methodsubmit()Query after submitting automatically
      Parameter--
     Return valuevoid
        Example

    Example 1: If the acquired parameter pane object is defined as parameterContainer, query after submitting automatically

    parameterContainer.submit();

    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:

    Automatic query after submitting.cpt

    4.gif

    MobileSupport mobile terminal


    Attachment List


    Theme: Secondary Development
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    10s後關閉

    Get
    Help
    Online Support
    Professional technical support is provided to quickly help you solve problems.
    Online support is available from 9:00-12:00 and 13:30-17:30 on weekdays.
    Page Feedback
    You can provide suggestions and feedback for the current web page.
    Pre-Sales Consultation
    Business Consultation
    Business: international@fanruan.com
    Support: support@fanruan.com
    Page Feedback
    *Problem Type
    Cannot be empty
    Problem Description
    0/1000
    Cannot be empty

    Submitted successfully

    Network busy