PDA

View Full Version : how to access to jsonStore raw data? store.reader.jsonData doesn't work.



sunrong
21 Jun 2010, 6:43 PM
hi all,
i can use store.reader.jsonData to access store which contains a jsonreader.
but it does not work on jsonStore,my codes is below


var salaryStore = new Ext.data.JsonStore({
url: 'index.php?model=salary&action=personal',
root: 'topics',
check: 'check',
fields: ['id', 'dept_caption', 'jxdf','jxgz', 'ct' ]
});

console.log(salaryStore.reader.jsonData.check),


i hope someone could help me. Thanks in advance.

darthwes
21 Jun 2010, 6:57 PM
it's undefined, right?

because you haven't loaded the store, right?

sunrong
21 Jun 2010, 7:21 PM
quite right! Thanks for your reminding.

evant has told me before. it's a shame.

Thanks