API Only for Button Widget

  • Last update:  2022-02-10
  • doClick

    MethoddoClick()The click event that triggers the button is equivalent to a manual click
     Parameter--
    Return valuevoid
        Example

    Example 1: If the obtained button widget object is defined as button, trigger the click event of the button

    button.doClick();

    Example 2: In ageneral report, trigger the click event of the button button0 in the parameter pane

    _g().getParameterContainer().getWidgetByName("button0").doClick();

    Example 3: In the dashboard, trigger the click event of the button button0 in the body

    _g().getWidgetByName("button0").doClick();

    Note: After adding an event, after an error is reported because the report block object is not completely created, you can add a delay function to delay execution, such as:

    setTimeout(function(){
        _g().getParameterContainer().getWidgetByName("button0").doClick();
    }, 500);

    Application

    example

    Set the report to query automatically after 2s (do not click the query button):

    Click to download the template: 

    Automatically trigger the click event of the button widget.cpt

    1.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