PDA

View Full Version : View the data loaded into a Store



Jsri
18 Nov 2012, 8:25 PM
Hi,

How can one view the data that is dynamically loaded into the Store?

I tried alert. It dint work,

Here is the code

var formPanel = Ext.create('Ext.form.Panel', {
fullscreen: true,


items: [ {
xtype: 'fieldset',
items: [ {
xtype: 'textfield',
name: 'name',
label: 'Name'
}, {
xtype: 'emailfield',
name: 'email',
label: 'Email'
}, {
xtype: 'passwordfield',
name: 'password',
label: 'Password'
}, {
xtype: 'button',
text: 'Submit',
listeners: {
tap: function() {
var values= JSON.stringify(formPanel.getValues(), null, 100);
store.load();
Ext.getStore('Store1').add(values);
store.sync();
Ext.Msg.alert('Store vals',Store1);


}
}


}]
}]
});

mitchellsimoens
20 Nov 2012, 9:55 AM
You need to remember things are async when you use store loading and such. So the code will continue to execute while a request has been sent to the server.