Open Create Record Page
Feature Description
Open the page to create a record. After the user submits, the system will create a new record.
Parameter Settings
| Configuration Item | Description |
|---|---|
| Data Table | The data table type of the record |
| Dialog Distance from Top | The distance from the top of the displayed dialog. You can use expressions to get context variables to specify dynamic content |
| Dialog Width | The width of the dialog popup. Supports both pixel and percentage scales |
| Use Record as Default Value | Use an expression to return a string. If a value is set, the creation page will use this record as the default value for fields. For example, for copy functionality, you can set the record ID that needs to be copied here |
| Field Default Value | The default value of fields in the opened form page |
| Hide Fields | Hide specific fields on the form page |
| Hide Continue Creating Option | Hide the continue creating option |
| Default Check Continue Creating | Default check the continue creating button. After checking the continue creating button, the page will not close after successful creation, and the user can continue to create the next record |
| Keep Last Created Fields After Successful Creation | After checking the continue creating button, the default behavior after successful creation will reset all fields. If retention is set, the system will retain the user's last filled content |
Example
Creation is a basic function of the data table. In the data table module, we need a create button in the toolbar that pops up a dialog for data creation when clicked. As shown in the figure below, in the employee information module, when we click the create button in the toolbar, a create record dialog will appear. After completing the information in the dialog and clicking OK, the create dialog will disappear, and a new record will be added to the employee information.
To configure such a button, you need to add a button in the toolbar of the data table module. Select Open Create Record Page as the execution action for the configuration item, and select the module where data needs to be created for the Data Table of the configuration item. In this case, select the current table (data table control).
When creating data, we often have the need to set default values. For example, in employee information, we hope to set the [Entry Date] to the current date by default, and [Employment Status] to employed by default. This can be achieved through the Field Default Value in the configuration item. The specific configuration is as shown in the figure below for the Field Default Value configuration. Add the Entry Date and Employment Status fields to this configuration item, get the current time as the field value for Entry Date, and set the position to the field value for Employment Status. We can also use an existing record as the default value by getting a record ID of this module through an expression in the Use Record as Default Value in the configuration item. For example, if we want to create the next data with the selected record as the default value, the configuration method is as shown in the figure below for the Use Record as Default Value configuration.
In the create data page opened through the current control, if we want to hide specific fields, we can configure them in the Hide Fields of the configuration item. For example, if we want to hide the [Employment Status] field when creating a record, we can select [Employment Status] in the hide fields of the configuration item.
If we want to create multiple pieces of data continuously, we can check Continue Creating Next at the bottom left of the dialog. After checking and clicking confirm, a new record will be directly added to the employee information, and the information in the create dialog will be cleared but will not disappear. If we want to retain some original information when creating continuously, we can configure it in the Keep Last Created Fields After Successful Creation of the control configuration item. For example, if we want to retain the [Gender] selected last time when creating continuously, we can select the [Gender] field in this configuration item. If we want to automatically check this configuration item every time we open the create page, we can set it in the Default Check Continue Creating in the configuration item. Of course, if we don't want to enable the Continue Creating Next function in the create form, we can also hide it in the Hide Continue Creating Option in the control configuration item.

