Row Insertion Policy

  • Last update:July 23, 2024
  • Overview

    Problem Description

    For data entry templates, the problem is how to set the value of cells in the newly inserted row or column to be null, a custom value, or the value inherited from the previous cell.

    Implementation Method

    You can set the row insertion policy for cells. The policy provides three options: Null, Default, and Original, as shown in the following figure.

    The following content describes the three policies.

    15f57c7994777b7445fe5c2aa435185.png

    Null: The value of cells in the newly inserted row or column is null. (The system defaults to this option.)

    Default: You can enter a custom value (a formula is also allowed). When you insert a row or column, the cells will be automatically filled with this value.

    Original: New cells will inherit the content of the original cells. This is generally applicable to cells defined by formulas, which will be preserved when you insert a row or column.

    Example

    Report Design

    1. Create a database query dataset named ds1 and enter the SQL statement SELECT * FROM Sales.

    b4911a7d7be2a37504aa5b0985fe3a6.png

    2. Design the data entry table. Insert text widgets into cells A3 and B3, insert number widgets into cells C3, D3, and E3, and insert the formula C3-D3-E3 into cell F3, as shown in the following figure.

    2b56ba4eb271f1c0f4a7b445caa95f3.png

    3. Add a button widget to cell G3, set Button Type to Insert Row, set Specified Cell to A3, and set Number of Rows to 1, as shown in the following figure.

    a080481c435fb842d6aa81359609c85.png

    Setting Method

    This section introduces the three policies and demonstrates the actual effects of each policy.

    Null Value

    Null is the default option, which means each time a new row is inserted, the cells in the row are blank. Set the row insertion policies of the cells where the fields ID, Sales Volume, Sales Cost, and Other Expenses are located to null values, as shown in the following figure.

    8180884a5cd4876c0feec270098afb0.png

    Default Value

    The option Default means you can define the content of cells in the to-be-added row through data types (String, Integer, Double, Date, Boolean, or Formula), as shown in the following figure.

    1eab53dcb7911cf68c9c0e3d1a3af3e.png

    Set the default value of the cell where the field Region is located to the string and enter North America in the input box, as shown in the following figure.

    07fa05c76e750614cd735e3d9f85821.png

    Original Value

    Set the row insertion policy of the cell where the field Revenue is located to the original value to make the to-be-added cells inherit the original formula, as shown in the following figure.

    63f362ec1ac9ffa5d1946f559283ebe.png

    Effect Display

    PC

    Save the template and click Data Entry Preview. The following figure shows the effect.

    last.gif

    Mobile Terminal

    last1.gif

    Template Download

    You can download the template: Row Insertion Policy.cpt.

    Attachment List


    Theme: Data Entry
    • Helpful
    • Not helpful
    • Only read

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

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

    不再提示

    9s后關閉

    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