1. #1
    Sencha Premium Member alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    94
    Answers
    3
    Vote Rating
    7
    alexander.urban is on a distinguished road

      0  

    Default Unanswered: store.load({addRecords:true})

    Unanswered: store.load({addRecords:true})


    I have user entries which are to be loaded after a user name is entered in a text field.

    So I execute

    Code:
    myStore.proxy.extraParams.searchname = userName;
    myStore.load({addRecords: true});
    and the call to the json web service works like a charm; just that the old entries from my store are removed from the store. Why?

  2. #2
    Sencha User
    Join Date
    Mar 2011
    Location
    Hyderabad
    Posts
    102
    Answers
    9
    Vote Rating
    13
    Zinnia will become famous soon enough

      0  

    Default


    I think you have to use the below method

    myStore.loadData(record, true);

  3. #3
    Sencha Premium Member alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    94
    Answers
    3
    Vote Rating
    7
    alexander.urban is on a distinguished road

      1  

    Default


    Problem solved, error in some very other part of our code (after that first store was loaded, a second store is loaded, and after that second store is loaded, the first store's content is replaced).

Thread Participants: 1