auto_stories Knowledge Base chevron_right Actions chevron_right Article

Grid - Add Rowv5

The Grid – Add Row action transfers data entered into form controls to the Grid by adding it as a new row. The values are mapped from the specified form controls to the corresponding grid columns using the Mapping property.

Properties

Description:
Enter a description for the action.

Heading:
Specifies the name displayed in the action list when the action is added as a Form Action.

Mapping:
Maps the form controls to the corresponding grid columns. The values entered into the mapped form controls are transferred to the associated columns in the grid when the action is executed.

Content Cleanup:
Determines whether the mapped form controls are cleared after a detail row is added. If disabled, the values in the form controls are automatically cleared after the row is added.

Run Condition:
If the SQL query entered in this field returns '0', the action will not be executed.

Request Confirmation:
Determines whether the user is prompted for confirmation before the action is executed. If enabled, the Confirmation Message property becomes available, allowing you to specify the message displayed to the user.

 

Example Usage

Assume that you have added several form controls to your form, as shown below.

Studio View

Next, add a button and assign the Grid – Add Row action to its When Clicked event.

Configure the Mapping property to match the form controls with the corresponding grid columns.

After entering values into the form controls, click the button. The mapped values are automatically added to the grid as a new row.

Since Content Cleanup is disabled in this example, the values in the form controls are automatically cleared after the row is added.

Client view