Pluggable widget adding new items to a datasource?

1
Hi. We’re developing a pluggable widget that uploads files. We’d like to execute a configurable action after a file is uploaded. This requires ListActionValue  which in turn requires a datasource. When we instantiate the entity representing an upload how do we add it to the datasource? The interface ListValue does not have a method for that. In particular, how do we associate the new object with the datasource context object which is not exposed by the datasource API? I read the article and found no clue: https://docs.mendix.com/apidocs-mxsdk/apidocs/client-apis-for-pluggable-widgets-8/#listvalue  
asked
1 answers
0

We encountered the same issue, i guess for now Mendix doesn't provide the API to update List or Array as response variable.

We used JSON.stringfy to convert the list to string and use Community commons to convert back to list of object in Mendix.

 

If you find any optimized solution, please update the comment also

answered