Page Number Parameter Availability in Condition Attribute Plugin

  • Last update:June 06, 2025
  • Overview

    Version

    Report Server Version
    Plugin Version
    11.0V1.3.1

    Application Scenario

    Due to the calculation logic of the report, you cannot define the page number formula on the Condition Attribute setting page. However, in some scenarios (for example, displaying the title only on even pages), defining the page number formula in Condition Attribute is necessary, as shown in the following figure.

     Gif1.gif

    Function Description

    After the plugin is installed, the $page_number and $totalPage_number parameters in Condition Attribute can be used for calculation. Currently, the page number parameters can be used in font, new value, background, font color, and other styles in condition attributes.

    icon

    Note:



    1. After pagination, the New Value condition attributes cannot automatically adjust the row height and column width.

    2. After the plugin is installed, you cannot set the row height and column width in Condition Attribute.

    3. After the plugin is installed, you cannot set the border in Condition Attribute.

    Procedure

    Take the following template as an example. You can display the title on even pages and hide the title on odd pages.

    Plugin Installation

    You can contact our technical support to obtain the plugin.

    For details about how to install the plugin in the designer, see Designer Plugin Management.

    For details about how to install the plugin on the server, see Server Plugin Management.

    Opening the Report

    You can download and open the report Pagination by Group.cpt

    Adding a Condition Attribute

    Select the title cell A1, choose Condition Attribute > Add Condition on the right attribute panel, and rename the added condition attribute Title Displayed on Even Pages but Hidden on Odd Pages. Click the edit button, select New Value from the drop-down list below Attribute, and leave the value empty. Set Type to Formula and enter the page number formula $$page_number % 2 != 0. This formula sets the title to be empty on odd pages, as shown in the following figure.

     1.png

    Effect Display

    PC

    Save the template and click Pagination Preview. The following figure shows the preview effect.

    1. Odd pages: The title is hidden. No title on odd pages.

     2.png

    2. Even pages: The title is displayed. Title displayed on even pages.

     3.png

    Mobile Terminal

    The preview effects on the DataAnalyst app and the HTML5 terminal are the same, as shown in the following figure.

     Gif2.gif

    Template Download

    For details, you can download the template Page Number Parameter Availability in Condition Attribute Plugin.cpt.

    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