Hybrid View

  1. #1
    Sencha User
    Join Date
    Nov 2011
    Posts
    52
    Vote Rating
    1
    Answers
    2
    testvogel is on a distinguished road

      0  

    Default Answered: Store findBy always returns -1

    Answered: Store findBy always returns -1


    Hi,

    why is the findBy method always returning -1, which means no record could be found. I think I'm doing something wrong :/

    code snippet:

    Code:
    var index = store.findBy(function(record,id){
       return true;
    });
    This should always return the index of the first element. What is the proper way of using the findBy method?

  2. Fixed it by myself. The 'store' variable was not properly initialized :/

  3. #2
    Sencha User
    Join Date
    Nov 2011
    Posts
    52
    Vote Rating
    1
    Answers
    2
    testvogel is on a distinguished road

      0  

    Default


    Fixed it by myself. The 'store' variable was not properly initialized :/