[Data Grid Reactive] how to set value into aggregate when data changed?
Forge component by OutSystems R&D

data is from aggregate

but data grid reactive cannot be set data from aggregate directly.

so i convert the data to text data by using api provided by data grid reactive.

its ok.

but when data changed on grid, how to set it back to the aggregate?


Hi @Jiro Yamada,

Thank you for your question.

To save the changes, you need to use the action GetChangedLines, that returns the added, changed and removed lines in the grid.

You can download and install the sample application and see how the sample page "SaveChanges" (see it live) ,

Hopes this helps you out,



@Ruben Goncalves 

thank you for your replay

GetChangedLines does work when i call it from button on screen

but GetChangedLines  does not work when it called from OnCellValueChange event

is it impossible to use GetChangedLines   on OnCellValueChange event?

Hello @Jiro Yamada 

The changes in GetChangedLines are only stored when the end user leaves the row, so that is the reason why you don't have the changes in OnCellValueChange.

However, it is possible:

In the OnCellValueChange you need to get the current cell selection, forcing a blur selection no cell in the grid (it is possible), retrieve the GetChangedLines and the set back the selected cell.

In attachment, you can find a sample OML with this implementation.

Please keep in mind that this hasn't been tested for all possible use cases or that it cover all of your requirements, so we cannot assure that it will work for all use cases.

Please let us know if this helps.

Bruno Martinho


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.