Hyperlink - Dynamic Parameter

  • Last update:August 01, 2024
  • Overview

    Application Scenario

    The value of the dynamic parameter can change dynamically. After you click a hyperlink, the display effect of the report can be altered based on the changed parameter values.

    The most common application is to achieve sorting effects, as shown in the following figure.

    1.gif

    Function Description

    The simple configuration page allows you to just add parameters and their values to achieve the function.

    Dynamic parameters can be used with the dataset parameters and the template parameters in the report.

    For details about hyperlink parameter passing, see Hyperlink Parameter Passing.

    A dynamic parameter refresh will trigger a global refresh.

    2cb3fe0b7a45ad5911fefa20cd8dd4b.png

    Example

    An order table will be created in this example. You can click the field Order Date in this table to select whether the value is sorted in ascending or descending order.

    Template Preparation

    1. Create a general report, create a dataset named ds1, and enter the SQL statement: SELECT * FROM Orders ORDER BY "Order Date" ${a}.

    ORDER BY is used in the SQL statement for order date sorting. However, the sorting method is set as a parameter, by which you can select the ascending or descending order when clicking the hyperlink.

    The dynamic parameter of the hyperlink can be used with the dataset parameter for date sorting.

    2. Design a table according to the style shown in the following figure.

    You need to click cell C2, set Format to Date, and select yyyy-MM-dd on the right Cell Element panel.

    You need to click cell D2, set Format to Date, and select #0.00 on the right Cell Element panel.

    a094881193c656fd3113c5d1ce7c6d8.png

    Hyperlink Addition

    1. Click cell C1, add a hyperlink of a dynamic parameter, rename the added hyperlink Dynamic Parameter1-Ascending Order Sorting, add a parameter a, and set the parameter value to ASC.

    iconNote:
    The parameter name here is the same as that of the dataset.

    252d60d83b2a9643a0f74a18c2b68e5.png

    2. Add another hyperlink of a dynamic parameter for cell C1, rename the added hyperlink Dynamic Parameter2-Descending Order Sorting, add a parameter a, and set the parameter value to DESC.

    bca16adac08cb32d981c9760b251aeb.png

    Effect Display

    Save the template and click Pagination Preview. The effect is shown in section "Application Scenario."

    The template can be previewed on App (DataAnalysis) and HTML5 terminals.

    Template Download

    Attachment List


    Theme: Report Features
    • 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