Subscripts on expanded data

  • Last update:March 26, 2021
  • I. Overview

    1.1 Problem Description

    Subscripts need to be set rich text or realized by two cells, but if it is expanded data, how to realize it?

    For example, to realize the subscript of the chemical formula, the effect is as shown in the figure below:

    1.png


    1.2 Realization Ideas

    Use formula to identify the subscript numbers in the string, and then combine with HTML tags to achieve.

    II. Example

    2.1 Prepare Data

    Create a built-in dataset, as shown in the following figure:

    2.png


    2.2 Design Table

    1) Drag the 2 fields of the built-in dataset into the table, as shown in the figure below:

    3.png

    2) Add a new column at the back and set the formula in cell C2: JOINARRAY(MAPARRAY(SPLIT(B2,""),IF(REGEXP(item,"[0-9]"),"<sub>"+item+ "</sub>",item)),""), as shown in the figure below:

    4.png

    3) C2 cell setting uses Display by HTML, as shown in the figure below:

    5.png


    2.3 Effect Preview

    1) PC

    Save the report, click the Pagination Preview, the effect is as shown in the figure below:

    6.png

    2) Mobile

    Both App and H5 are supported at the same time, and the effect is shown in the figure below:

    7.png

    III. Template Download

    Refer to the completed template:%FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\BasicApplication\Extended_data_to_achieve_subscripts.cpt

    Click to download:

    Extended_data_to_achieve_subscripts.cpt

    IV. Precautions

    Additional explanation, the superscript and subscript tags in HTML, as shown in the following table:

    FunctionLabelExample
    Superscript<sup>Normal text <sup>Superscript</sup>
    Subscript<sub>Normal text <sub>Subscript</sub>


    Attachment List


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