Results 1 to 2 of 2

Thread: View the data loaded into a Store

  1. #1
    Sencha User
    Join Date
    Nov 2012
    Posts
    34
    Vote Rating
    0
      0  

    Default 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 - Sr Software Engineer mitchellsimoens's Avatar
    Join Date
    Mar 2007
    Location
    Gainesville, FL
    Posts
    39,556
    Answers
    3931
    Vote Rating
    1272
      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 @LikelyMitch
    Sencha Inc, Senior Software Engineer
    ________________
    Learn BBCode and use it! Checkout the CODE tag!

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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •