32
Views
4
Comments
[DataGrid Reactive Dynamic Columns] How to save modified data?
datagrid-reactive-dynamic-columns
Reactive icon
Forge asset by Henrique Silva
Application Type
Reactive

I need to read modified data from the grid and save it in database. 

considering the columns are dynamic how can i deserialize the Jason to a dynamic structure?

2025-08-07 06-30-56
Amit J
Champion

Hi Joule,

Can you please attach your sample OML. 

UserImage.jpg
Joule

you can use this itself 

https://www.outsystems.com/forge/component-overview/15000/datagrid-reactive-dynamic-columns

page: DataGridDynamicColumnsDemo/DemoEditable

the save doesn't work

2021-06-03 11-03-21
Anubhav Rai

Hi Joule,
You can get some ideas form this post.
https://www.outsystems.com/forums/discussion/91479/outsystems-data-grid-getchangedlines-not-recognizing-the-cell-i-changed/
In the sample OML provided in the above post, data save is triggering on the click of the save button, but you can change this to the "cell on change" action as well.

Please let me know if you have more queries.

Regards,
Anubhav

UserImage.jpg
Joule

Ciao, 

the sample you have given is very straight forward and deserialize write data on a table that has a predefined number of columns (5 in the sample you have linked). 

In the example I have given the number of columns are variables, DataGridDynamicColumnsDemo.

Outsystems JSON deserialize fail to write data unless you already knows how many columns are there. Any clue?

thanks


Giulio

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