To bind my data on the mobile side it works like this :
getHeros() {
this.wakanda.getCatalog().then(ds => {
ds['Superhero'].query({orderBy:"ID desc",pageSize:3}).then(collection => {
this.favoriteSuperheroes = collection.entities;
});
});
}
But like this I work directly on the table. I have a method who provide me everything I want on the server side.
I want to know, if I call my method in the backend and store it in a variable like this:
var favoriteMethod = ds.Superhero.myDataClassMethod();
How I can use this variable on the mobile side ?