Dojo data stores can be used in General Interface through their native API or via a CDF interface provided by jsx3.xml.DojoDataStore. To access a Dojo data store via a CDF interface, create an instance of jsx3.xml.DojoDataStore and set its store and the query that retrieves the data from the source, as in the following example: var cdf = jsx3.xml.DojoDataStore(); cdf.setStore(new dojox.data.JsonRestStore({target:"/RestData"}); cdf.setQuery("?price<10"); var recordIds = cdf.getRecordIds(); var firstRecord = cdf.getRecord(recordIds[0]);
|
Contents
|
