Page Number Parameter Availability in Condition Attribute Plugin

  • Last update:April 21, 2024
  • Overview

    Version

    Report Server Version

    Plugin Version

    11.0

    V1.3.1

    Application Scenario

    Due to the calculation logic of the report, you cannot define the page number formula on the Condition Attribute settings page. However, in some scenarios such as displaying the title only on even pages, it is necessary to define the page number formula in Condition Attribute, as shown in the following figure.

    1.gif

    Function Description

    After the plugin is installed, the $page_number and $totalPage_number formulas in Condition Attribute can also be defined for calculation. Currently, the page number parameters can be used in Font, New Value, Background, Font Color, and other styles in Condition Attribute.

    iconNote:
    1. After pagination, the new values of the condition attribute 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 a template as an example to set it to display the title on even pages and not display the title on odd pages.

    Plugin Installation

    You can obtain the plugin at Page Number Parameter Availability in Condition Attribute.

    For details about installing the plugin in the designer, see Designer Plugin Management.

    For details about installing the plugin on the server, see Server Plugin Management.

    Opening the Report

    You can download the template: Page Number Parameter Availability in Condition Attribute.cpt.

    Adding a Condition Attribute

    Select the title cell A1, choose Condition Attribute > Add Condition on the attribute panel on the right side, and rename the newly-added condition attribute as Title on Even-Numbered Pages, No Title Displayed on Odd Pages. Click the edition button and add New Value as null. Add the condition attribution of the New Value type and set the page number formula as: $$page_number % 2 != 0. This formula indicates that when the page number is odd, the title is empty, as shown in the following figure.

    图片3.png

    Effect Display

    1. On PC

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

    1. Odd pages: Do not display the title.

    403bb25db8a2ffdf659b0426cbd074b.png

    2. Even pages: Display title.

    67c48db9b483d3b3fc253e0f0f7697f.png

    2. On Mobile Terminals

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

    2222.gif

    Template Download

    Attachment List


    Theme: Report Features
    • Helpful
    • Not helpful
    • Only read

    滑鼠選中內容,快速回饋問題

    滑鼠選中存在疑惑的內容,即可快速回饋問題,我們將會跟進處理。

    不再提示

    8s后關閉

    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