Need an elaborate example with datasets declaration

Sep 7, 2011 at 12:11 PM



I am trying to use the JQINQ in my code but am unable to run it succesfully. I have added the library files to the project. I already have jquery libraries added to the pages. I have a data container like


var dataContainer[0] = {id:1, name:'allen'}

var dataContainer[1] = {id:2, name:'John'}

var dataContainer[2] = {id:3, name:'Paul'} 


Can I use this as a dataset for querying like:


var query = new jsinq.Query("from g1 in $0 select { ,name:} ");

query.setValue(0, dataContainer);

var filterCustomers = query.execute();


Can somebody please post an example with datasets declared/defined??