justinmind-logo
 
Upvote 1

How to add a new record to DataGrid?

In Progress Erick 4 years ago

I have a DataMaster (my real work have radio buttons, custom list, text) and a DataGrid linked to that datamaster.

I need an "Add New Record Button", this button should add an empty or default new row to the datagrid.

I followed this tutorial:

https://www.justinmind.com/support/adding-new-records-to-a-data-list-using-forms/

First I tried it with a simple datamaster-datagrid:

A simple datamaster:

938417475913855d25daca9048b46738

A simple datagrid linked to the datamaster.

5e550fc8f2f13ebe067cb2895aa475ab

Then I created a tiny form and variables for each field

6d33a1746d18d0c05556f7c23726ff74

The click event for my "Add New Record Button"

13c98ec82e2c1f34de7604eccc8a5228


But it doesn't work, the datagrid does not show new rows when I hit "Add new record button". What I missed?

01a28f48eceae8923826ac09219ae5d8

Replies (1)
photo
1

You need to add one more event which will refresh the list. On the button, add an "On Click" + "Set Value" event, selecting the Data Grid as the target. Select the 'from current data master' radio button.

Leave a Comment
 
Attach a file