Drop-down check box enables multi-value query

  • Last update:  2021-11-23
  • I.Overview 

    1) Expected effect

    In actual use, users can select multiple items through the drop-down check box, and the effect is as shown in the picture below:

    0.png

    2) Implementation roadmap

    Use drop-down check box widgets and set parameter conditions and filtering conditions to achieve multiple application scenarios.

    II. Example

    1.Preparing data

    Create a regular report, add database query ds1: SELECT * FROM ModelSalesData, as shown below:

    1.png


    2.Report design

    Design the report style and drag the corresponding fields into the cell, as shown below:

    2.png


    3.Setting template parameters

    Select create template Parameter, the parameter name is: type, as shown below:

    3.png


    4.Setting the drop-down check box widget

    1)Edit the parameter pane, select add all, and select "Drop-down check box widgets", as shown below:

    4.png

    2) ClickData Dictionary, select Data Query for type setting, select ds1 for dataset, and select Category for both actual value and display value, as shown below:

    5.png


    5.Setting filter criteria

    Click A2 cell, select filter, select the Category of the optional column, the operator is equal to, select the parameter $type, and click "Add", as shown below:

    6.png


    6.Effect preview

    1) PC

    Save the template and click Pagination Preview, the effect is as shown below:

    7.png

    2)Mobile

    The end effect of App and HTML5 is the same, as shown below:

    gif.gif

    III.Download the template

    For a completed template, see: %FR_HOME%\webroot\WEB-INF\reportlets\doc-EN\Parameter\Drop-down_check_box_enables_multi-value_query.cpt

    Click to download the template: 

    Drop-down_check_box_enables_multi-value_query.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