File dataset parameter filtering

  • Last update:  2021-10-19
  • I.Overview

    1) Application sscenarios

    In some cases, users want to use files as data sets, input parameter values in the widget of the parameter query interface, click the query button, data query, how to achieve it? As shown below: 

    7.jpg

    2) Implementation roadmap

    You can query data by setting the corresponding column of the data dictionary bound to the file data set in the drop-down box and filtering parameters.

    II.Example

    1.Data preparation

    Create a new file dataset File1, as shown below:

    Note: you need to place the file under %FR_HOME%\webroot\WEB-INF\reportlets\and click to download the file: 

    File_dataset_parameter_filtering.cpt

    1.jpg


    2.Template design

    1) Parameter settings

    • Create a general report and click Template>Template Parameters.Create three template parameters: str,end, and area, as shown below:

      3.jpg

    • Edit the parameter panel, add the date widget and drop-down box widget, and bind the widget values str, end and area in turn, as shown below:

      9.jpg

    • Set the data dictionary for the drop-down box area, as shown below:

      4.jpg

    2) Report design

    •  Bind Order ID, Customer ID, Order date and Area in sequence, as shown below:

      5.jpg

    • Double-click A2 cell to set filter properties, as shown below:

      6.jpg

    Note 1: The value of the filter condition needs to be changed from the string to a parameter and then the corresponding parameter name.

     Note 2: Filter attributes are similar to SQLwhere #5='$area' and #3 between '$str' and '$end'

    Note 3: #3 and #5 refer to the column number of the file data set. The specific value is subject to the file data set itself.


    3.Effect preview

    1) PC

    Save the template and select Pagination Preview as shown below:

    7.jpg

    2)Mobile

    The end effect of App and HTML5 is as follows:

    8.jpg

    III. Download the template

    The template is complete, see: %FR_HOME%\webroot\WEB-INF\reportlets\doc-EN\Parameter\

    File_dataset_parameter_filtering.cpt

    Click to download the template: 

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