1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    34
    Vote Rating
    0
    Jsri is on a distinguished road

      0  

    Default 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);


    }
    }


    }]
    }]
    });

  2. #2
    Sencha - Senior Forum Manager mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    St. Louis, MO
    Posts
    33,641
    Vote Rating
    434
    Answers
    3107
    mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of mitchellsimoens has much to be proud of

      0  

    Default


    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.
    Mitchell Simoens @SenchaMitch
    Sencha Inc, Senior Forum Manager
    ________________
    http://www.JSONPLint.com - Source to lint your JSONP!

    Check out my GitHub, lots of nice things for Ext JS 4 and Sencha Touch 2
    https://github.com/mitchellsimoens

    Think my support is good? Get more personalized support via a support subscription. https://www.sencha.com/store/

    Need more help with your app? Hire Sencha Services services@sencha.com

    Want to learn Sencha Touch 2? Check out Sencha Touch in Action that is almost in print!

    When posting code, please use BBCode's CODE tags.