1. #1
    Ext User
    Join Date
    Jan 2009
    Posts
    16
    Vote Rating
    0
    spbroom is on a distinguished road

      0  

    Default extracting all data from a datastore

    extracting all data from a datastore


    Hi,
    Is there any way of extracting all of the data from a store in one go.

    I can get one record, or all changes since the last commit. But is there any (other than using a for loop) of extracting the lot.

    Thanks

  2. #2
    Sencha - Ext JS Dev Team evant's Avatar
    Join Date
    Apr 2007
    Location
    Sydney, Australia
    Posts
    16,119
    Vote Rating
    507
    evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute evant has a reputation beyond repute

      0  

    Default


    There's no built in way, just use:

    Code:
    var data = [];
    store.each(function(rec){
        data.push(....);
    });
    Evan Trimboli
    Sencha Developer
    Twitter - @evantrimboli
    Don't be afraid of the source code!

  3. #3
    Ext User
    Join Date
    Jan 2009
    Posts
    16
    Vote Rating
    0
    spbroom is on a distinguished road

      0  

    Default


    Ok, thanks

  4. #4
    Sencha - Architect Dev Team aconran's Avatar
    Join Date
    Mar 2007
    Posts
    8,883
    Vote Rating
    102
    aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold aconran is a splendid one to behold

      0  

    Default


    There is also Store's getRange() which will return you an array of all records that you can loop over yourself.
    Aaron Conran
    @aconran
    Sencha Architect Development Team

Thread Participants: 2

film izle

hd film izle

film sitesi

takipci kazanma sitesi

takipci kazanma sitesi

güzel olan herşey

takipci alma sitesi

komik eğlenceli videolar