Custom Column Insertion or Deletion Button

  • Last update:April 24, 2025
  • Overview

    Problem

    Two options are available for row insertion and deletion buttons by default, namely Insert Row and Delete Row.

    In this case, how to achieve the effect of inserting and deleting columns as shown in the following figure?


    Implementation Method

    The buttons for inserting and deleting rows identify the data that needs to be inserted or deleted based on the parent-child cell relationship. Therefore, you still need to use Insert Row and Delete Row in Button Type and set the parent cell to meet your needs of inserting and deleting columns.

    iconNote:
    You cannot insert or delete columns when the expansion direction of fields is vertical.

    Example

    Data Entry Template Design

    1. Create a database query dataset ds1 with the SQL statement SELECT * FROM Sales.

    2. To design the data entry table, add text widgets for cells B3 to B8, set Expansion Direction to Horizontal for cells B3 to B8, and drag the dataset fields into the corresponding cells, as shown in the following figure.


    Column Insertion Button Setting

    Select cell B2 and add a button widget for the cell. Select Insert Row from the drop-down list of Button Type, set Button Name to Insert Column, set Specified Cell to B3, and retain the default setting of other items, as shown in the following figure.

    Column Deletion Button Setting

    Select cell B1 and add a button widget for the cell. Select Delete Row from the drop-down list of Button Type, set Button Name to Delete Column, set Specified Cell to B3, and retain the default setting of other items, as shown in the following figure.

    6.png

    Parent Cell Setting

    1. Select cell B3 and set Up Parent Cell to None, as shown in the following figure.

    2. Set Up Parent Cell to cell B3 for cells B1 and B2, as shown in the following figure.

    Effect Display

    PC

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

    Mobile Terminal

    The report can be previewed on the DataAnalyst app and the H5 terminal. The following figure shows the effect.

    Template Download

    You can download the template Custom Column Insert or Deletion Button.cpt.

    Attachment List


    Theme: 数据准备
    • 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