I have the following JSON in the typeData variable, which is then placed in the dojo.data.ItemFileReadStore repository. I need to know how to check the status value, whether it was set to βsuccessβ or some other value. I was not able to figure out how to get the status value from ItemFileReadStore, any help would be greatly appreciated.
var typesData = { status: "success", label: "name", identifier: "value", items: [ {value: 3, name: "Truck"}, {value: 8, name: "Van"}, {value: 6, name: "Car"}, {value: 7, name: "Scooter"} ] }; var test = new dojo.data.ItemFileReadStore({ data: typesData });
source share