Retrieve data from JavaScript action in a Native App

1
In a native app, I want to retrieve all data of an entity (from JavaScript action) I tried this getOffline  method from documentation mx.data.getOffline("MyFirstModule.Field", [], {}, function(mxobjs, count) { console.log("There are " + count + " fields"); }, function(e) { console.error("Could not retrieve slice:", e); }); When executed, this always goes to error callback and error object e is undefined. Message logged in console is: Could not retrieve slice: undefined Module name in my project is “MyFirstModule” and I have an entity named “Field”. What could be the problem? How can I retrieve list of all fields in database? Xpath option does not work for native app (offline local database)
asked
0 answers