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
    Gainesville, FL
    Posts
    36,756
    Answers
    3462
    Vote Rating
    828
    mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute mitchellsimoens has a reputation beyond repute

      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
    ________________
    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 in print!

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

Thread Participants: 1

Turkiyenin en sevilen filmlerinin yer aldigi xnxx internet sitemiz olan ve porn sex tarzi bir site olan mobil porno izle sitemiz gercekten dillere destan bir durumda herkesin sevdigi bir site olarak tarihe gececege benziyor. Sitenin en belirgin ozelliklerinden birisi de Turkiyede gercekten kaliteli ve muntazam, duzenli porno izle siteleri olmamasidir. Bu yuzden iste. Ayrica en net goruntu kalitesine sahip adresinde yayinlanmaktadir. Mesela diğer sitelerimizden bahsedecek olursak, en iyi hd porno video arşivine sahip bir siteyiz. "The Best anal porn videos and slut anus, big asses movies set..." hd porno faketaxi