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);
}
}
}]
}]
});
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);
}
}
}]
}]
});