App based on non-persistable objects

0
Hi, We are trying to develop an App based on non-persistable entities, where all the data comes from web services. The problem we have with this approach is that we won’t be able to use all the paging and search functionality from the data grid, so we are trying to recreate the pagination with JavaScript and insert it using the JavaScript snipped widget. However, we have a problem when we try to access a non-persistable object using the Client API. The function we are calling is “mx.data.get()” and this uses a xpath value to locate the data from the database, so this does not work for us. Any suggestion on how to get the non-persistable object we sent to the page?
asked
1 answers
1

Hi Leonardo,
 

Wrap your list view or data grid in a Helper dataview that you feed from a microflow.

Make sure your Helper object is associated with the objects you want to show in the data grid.

Then instead of mx.data.get with xpath use only mx.data.get with path, or use _contextObj.fetch(path, callback)

This is the way to retrieve non-persistant entites by association.

 

Hope this helps,

Andrej

answered