Substitute by string sections

  • Last update:  2022-01-07
  • I. Overview

    1. Problem description

    Sometimes our database field stores the content of multiple characters spliced, as shown in the figure below (top left), and its data dictionary is shown in the figure below (bottom left), how to set them to display as shown in the figure below (right)?

    1.png            

            

    2. Ideas

    Divide the string into an array, and then use Display>Data Dictionary to display.

    II. Operation steps

    1. New dataset

    Create a new template and add two embedded datasets, as shown below:

    2.png

    3.png


    2. Report design

    1) Drag the data column to the cell, and the template settings are as follows:

    4.png

    2) Insert a column in the back and enter the corresponding split formula: split(B2,","), as shown below:

    5.png

    3) Set cell C2 to no expansion:

    6.png

    4) Set the Display>Data Dictionary in cell C2, as shown below:

    7.png

    5) Hide the original second column:

    8.png

    III. Effect preview

    1. PC

    Save and click the Pagination Preview, and the effect as follows:

    9.png


    2. Mobile

    App has the same effect as HTML5, as shown in the following figure:

    11.png

    IV. Template download

    The completed template can be found in:

    %FR_HOME%\webapps\webroot\WEB-INF\reportlets\doc-EN\ReportApplication\BasicApplication\Substitute by string 

    sections.cpt 

    Click to download the template:  Substitute by string sections.cpt

    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