I have the below JSON in the typeData variable that is then put into a dojo.data.ItemFileReadStore. What I need to know is how to check the value of status, was it set to "success" or some other value. I've not been able to figure out how to get the value of status from a 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 });