Forum /
Ext JS Community Forums 4.x /
Ext: Q&A /
Unanswered: View the data loaded into a Store
Unanswered: View the data loaded into a Store
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);
}
}
}]
}]
});
Sencha - Senior Forum Manager
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.
Sencha is used by over two million developers. Join the community, wherever you’d like that community to be
or Join Us