[Data Grid] [ How To ] - Add a Row button to update record with ajax submit

Forge Component
Published on 6 Nov (2 weeks ago) by OutSystems R&D
31 votes
Published on 6 Nov (2 weeks ago) by OutSystems R&D

Hi OS Experts,

I need help in the following scenario.

I have a data grid showing records. Each row has a field called "status".  I want to add a button at the left side of each row. When a user clicks on the button, it will set the status to "Approved" and make the row disappeared from the data grid. This is used to enable users to review and approve against a large list.

Any ideas how to implement that? Much appreciate for any guidance here.


George Qiao

Hello George,

You can create an action on the button by passing the ID that was clicked on the grid and updating the value in your database. Soon after that you refresh the query that populates your grid using Refresh Data and update it using a Ajax Refresh .

the record will disappear from the list if your search returns only records with status "approved"

Hope this helps.


Gustavo Gonçalves