Getting Started with Parameter Queries

  • Last update:October 22, 2026

  • Overview

    Expected Effect

    The main function of parameters is to enable real-time interaction between users and data, that is, to filter data. We can use parameters in a variety of situations, such as referencing parameters in cells for dynamic titles, displaying different values based on parameter values, and so on. The following figure shows the effect.

    1.1 预期效果.gif

    Implementation Roadmap

    Set template parameters and use parameter widgets on the parameter panel to filter data.

    Example

    Template Preparation

    1. Create a general report, and create a dataset ds1 with the SQL statement  SELECT * FROM Sales_Volume.

    2. Choose Template > Template Parameter. In the Template Parameter dialog box, click the  button to add a parameter.

    3. Double-click the parameter name on the left and rename it Region. Set Default Value to California on the right, and click OK.

    2.1 模板准备123.gif

    4. Merge cells A1-C1 and add the formula: $Region + " " + "Sales Volume" to display a dynamic title consisting of the selected region name followed by Sales Volume, such as California Sales Volume, as shown in the following figure.

    2.1 模板准备4.gif

    5. Enter Region, Salesperson, and Sales_Volume in cells A2, B2, and C2, respectively. Drag the corresponding data columns from dataset ds1 into cells A3, B3, and C3, respectively, and adjust the cell sizes.

    2.1 模板准备5.gif

    6. Select cell C3. Choose Cell Element > Basic, set Data Setting to Summary, and then select Sum.

    2.1 模板准备6.gif

    Widget Settings

    Adding Widgets

    1. Click the  icon to enter the widget editing panel, and then click Add All in the Widget Setting panel on the right.

    2. Set the widget to a drop-down box widget.

    2.2.1 添加控件.gif

    Setting Widgets

    1. Select the label widget and set Widget Value to Region:.

    2.2.2 设置控件(1.gif

    2. Select the drop-down box widget and set Widget Name to Region. In the Data Dictionary window, set Type to Data Query, Dataset to ds1, and Actual Value and Display Value to Region. 

    2.2.2 设置控件(2.gif

    iconNote:
    The drop-down box widget name must match the template parameter name.


    Adding the Filter

    Double-click cell A3 and add a filter condition that sets Region equal to the parameter $Region, so that the cell data is filtered based on the region selected from the drop-down box.

    2.3 添加过滤.gif


    Effect Preview

    PC

    Save the template and click Pagination Preview. The effect is shown in the following figure.

    PC.gif

    Mobile Terminal

    The effect is shown in the following figure.

    mobile.gif


    Template Download

    Download the template: Parameter Query.cpt

    Attachment List


    Theme: Quick Start
    Already the First
    Already the Last
    • 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