Functiondojox.data.jsonPathStore.fetch

dojo.require("dojox.data.jsonPathStore");
defined in dojox/data/jsonPathStore.js

console.log("fetch() ", args); fetch takes either a string argument or a keywordArgs object containing the parameters for the search. If passed a string, fetch will interpret this string as the query to be performed and will do so in SYNC_MODE returning the results immediately. If an object is supplied as 'args', its options will be parsed and then contained query executed. query: / string or object / Defaults to "$..". jsonPath query to be performed on data store. note that since some widgets expect this to be an object, an object in the form of {query: '$['], queryOptions: "someOptions"} is acceptable mode: dojox.data.SYNC_MODE || dojox.data.ASYNC_MODE Override the stores default mode. queryOptions: / object / Options passed on to the underlying jsonPath query system. start: / int / Starting item in result set count: / int / Maximum number of items to return sort: / function / Not Implemented yet The following only apply to ASYNC requests (the default) onBegin: / function / called before any results are returned. Parameters will be the count and the original fetch request onItem: /function/ called for each returned item. Parameters will be the item and the fetch request onComplete: / function / called on completion of the request. Parameters will be the complete result set and the request onError: / function / colled in the event of an error

Usage

function (args) (view source)
parametertypedescription
args