66
Views
1
Comments
Solved
[OutSystems Data Grid]  Errors in DataGrid 2.90 in GetSelectedRowsData action
outsystems-data-grid
Reactive icon
Forge asset by OutSystems
Application Type
Reactive

The code stopped working after upgrading data grid component from version 2.7 to 2.9 yesterday evening. It causes error in deserialization when we use GetSelectedRowsData action to get selected data from grid, loop through it and deserialise each rowdata.current.dataitem to a structure.

image


error message:

Failed to deserialize JSON to structure1: Could not convert '[object Object]' to List


Please let me know how to fix this error or when its fixed at your end 

2020-08-05 09-00-16
Gabriel Lundgren
Solution

Hello @Rushikesh Bappur,


On version 2.9.0 we changed the GetSelectedRowsData to return the dataItem as an object instead of an array. You can see this forum post for more info. This means that you don't need to deserialize your dataItem into a text list anymore, you can deserialize it to single item of your entity. 


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