Global Parameter

  • Last update:April 21, 2025
  • Overview

    The global parameter can be used in all templates under the current project.

    The difference between the global parameter and the template parameter is as follows:

    The global parameter can be used in all templates under the current project, while the template parameter can only be used in the current template.

    Example

    Global Parameter Defining

    Choose Server > Global Parameter on the menu bar, add a parameter area, and set Default Value to Jiangsu Province, as shown in the following figure.

     全局参数1.png 

    iconNote: 
    This global parameter can be used in all templates under the current project.

    iconNote: 
    The default names of newly added parameters are P1,...Pn, which cannot be renamed directly in the input box. You need to double-click the parameter name on the left to modify the parameter in V 11.0.

    Report Opening

    Open the report %FR_HOME%\webroot\WEB-INF\reportlets\doc\Primary\GroupReport\Group_Report.cpt.

     全局参数2.png

    Parameter Filtering Setting

    Double-click the cell containing the data column of Region, select Filter, select Parameter in the value area, select the parameter named area from the drop-down box, and click the Add button, as shown in the following figure.

     全局参数3.png

    iconNote: 
    The global parameter area is not created in the current template, but the parameter can be called directly in the template. 

    Widget Setting

    Enter into the parameter editing interface, and the global parameter is displayed on the upper right, as shown in the following figure.

     全局参数4.png

    Click Add All, and set the parameter interface, as shown in the following figure.

     全局参数5.png

    Effect Display

    Save the report, and click Pagination Preview. As the default parameter is Jiangsu Province, you can click Query to view the data of Jiangsu Province. The following figure shows the effect on the PC.

     全局参数6.png

    The following figure shows the preview effect on the DataAnalyst app and the HTML5 terminal.

    全局10.gif 

    Template Download

    For details, you can download the template Global Parameter.cpt

    iconNote: 
    Since the global parameter can be used in all templates under the current project, you need to set global parameters for your projects in the designer. In the provided template, you cannot view the set global parameter by choosing Server > Global Parameter, but you can still preview the effect. 

    Notes

    Avoiding Name Duplication Between the Global Parameter and the Template Parameter

    When a global parameter name is the same as a template parameter, only one of the parameters will be displayed on the parameter interface without differentiation, and the template parameter will prevail, as shown in the following figures.

    The global parameter setting:

     全局参数7.png

    The template parameter setting:

     全局参数8.png

    The following figure shows the parameter interface display.

     全局参数9.png

    Remote Configuration of the Global Parameter

    For details about linking a remote server, see Remote Design.

    If you want to configure and view a report with the locally set global parameter on the remote designer, you need to switch the directory to the remote work directory, and set the same global parameter as the local one, after which you can use the global parameter in the FRM report system of the remote designer.

    Calculation on Demand for the Global Parameter

    In 11.0.33 and later versions, global parameters are calculated on demand now, avoiding calculations on all parameters before the calculation of each template. This can significantly improve performance and resolve white screen issues.

    iconNote: 

    1. Such calculation is not subject to whether Calculation Delay of Global/Template Parameters is enabled.

     2. This function is not applicable in FVS.

    Attachment List


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