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?
Hi Joule,
Can you please attach your sample OML.
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
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
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