JS Implementation can Automatically Query without Clicking the Query Button

  • Last update:  2021-12-20
  • I.Description

    1. Expected effect

    Our built-in query interface needs to click the query button to query the data. The user feels that this is too troublesome. They hope to query the results directly after entering the parameters, without clicking the query button, so how to achieve it?

    Or re-trigger the query after filling in the report successfully and display the latest data. The effect is as follows:

    2021-01-26_16-48-23.gif


    2. Ideas

    Users can add JS scripts to the template:

    _g().parameterCommit();

    to trigger query events.

    II. Examples

    1. Prepare template

    Open the template:%FR_HOME%\webroot\WEB-INF\reportlets\GettingStartedEN.cpt

    The original parameter interface is as follows, select Query button and delete:

    Click to download the template: 

    GettingStartedEN.cpt

    1.png


    2. Trigger query event

    Click the Drop-down Box Control in the parameter area, select the Event Panel below the property sheet, and click to Add An Event After Editing:

    2.png


    3. Effect preview

    Click the Pagination Preview and select a value to automatically query it. The effect is shown insection I

    App and HTML5 effects are shown in the figure below:

    2021-12-20_17-59-34.gif

    III. Download Template

    The completed template can be found in:

    %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\JS\JS_Implementation_can_Automatically_Query_without_Clicking_the_Query_Button.cpt

    Click to download the template:

    JS_Implementation_can_Automatically_Query_without_Clicking_the_Query_Button.cpt

    Attachment List


    Theme: Parameter
    • 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