Quantcast
Channel: Appcelerator Developer Center Q&A Unanswered Questions 20
Viewing all articles
Browse latest Browse all 8068

I have problem to read a value from fetch

$
0
0

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


Viewing all articles
Browse latest Browse all 8068

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>