Skip to content
Advertisement

how to read extjs data store

I want to read a particular value of an extjs data store and manipulate it locally. Response xml looks like :

JavaScript

My store will have just one user entry when response is received and i want to read ‘bname’ value. So far i have tried two approaches and both giving error.

approach1:

JavaScript

Running above code gives error that ‘Ext.define is not a function’.

Approach2:

JavaScript

Above code does not display anything on console.

I am new to extjs and not sure how i can access ‘bname’ value from response. It would be great if someone can help

Advertisement

Answer

Below code worked for me :

JavaScript
Advertisement