Threaded View
-
5 Nov 2012 9:27 AM #1
Answered: Store && Json => Get data next to rootProperty
Answered: Store && Json => Get data next to rootProperty
Hi,
I can't find a way to get the values of items that are siblings to the rootProperty in my json.
For instance I have this json :
I'd like to map the users to my store, which works with rootProperty, however I cant find a way to retrieve the value of "itemName" from the reader. Is there a way ?Code:{ "itemName":"Hello world", "users": [{ "id":1, "name":"Ed Spencer", "email":"ed@sencha.com" }, { "id":2, "name":"Abe Elias", "email":"abe@sencha.com" }] }
Thanx for helping !
-
Best Answer Posted by hadukiCode:
var reader=store.getProxy().getReader(); reader.rawData.itemName


Reply With Quote