PDA

View Full Version : Get variable from store



lobosan
5 Sep 2011, 10:20 AM
Hi everyone, i'm new in extjs and i need to read a value of a store, after using it in a grid, for example i'm getting this json

{"success":true,"data":[{"idciudad":"5","idregion":"6","nombre":"Tulc\u00e1n"},{"idciudad":"6","idregion":"6","nombre":"Ibarra"},{"idciudad":"7","idregion":"7","nombre":"Cuenca"},{"idciudad":"8","idregion":"6","nombre":"Riobamba"}]}

So how can i read just the value Riobamba in the last record?

Thanks in advance for your help

skirtle
6 Sep 2011, 2:23 AM
store.getLast().get('nombre');