Monday, 15 July 2013

javascript - How to get values from the store in extjs4 -



javascript - How to get values from the store in extjs4 -

i have store fetches info zend server. want store records customizations on form. getting info store using below code.

var index = ext.storemgr.lookup('product.attributecombobox').find('abbr',4); var reco = ext.storemgr.lookup('product.attributecombobox').getat(index);

above snippet returns no records. please allow me know wrong.

in debugger check store exists

ext.storemgr.lookup('product.attributecombobox')

check how many records in store

ext.storemgr.lookup('product.attributecombobox').data.items

check records have parsed properly

what came server record

ext.storemgr.lookup('product.attributecombobox').data.items[0].raw

how converted record

ext.storemgr.lookup('product.attributecombobox').data.items[0].data

javascript extjs extjs4 extjs-mvc

No comments:

Post a Comment