Results 1 to 3 of 3

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

  1. #1
    Sencha Premium Member alexander.urban's Avatar
    Join Date
    Nov 2013
    Posts
    212
    Answers
    8
    Vote Rating
    40
      0  

    Default 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
    106
    Answers
    10
    Vote Rating
    13
      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
    212
    Answers
    8
    Vote Rating
    40
      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).

Posting Permissions

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