Hello,
I am trying this:
var searchAutor= "Shakespeare"; var library = Alloy.createCollection('book'); // The table name is the same as the collection_name value from the 'config.adapter' object. This may be different from the model name. var table = library.config.adapter.collection_name; // use a simple query var query= library.fetch({query:'SELECT * from ' + table + ' where author="' + searchAuthor + '"'});So if I tried :
iTi.API.info(query);
I got undefined, how can I access the value of fetch method?
Thank you for any help