View Full Version : store.load({addRecords:true})

17 Feb 2014, 5:09 AM
I have user entries which are to be loaded after a user name is entered in a text field.

So I execute

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?

17 Feb 2014, 10:51 PM
I think you have to use the below method

myStore.loadData(record, true);

18 Feb 2014, 1:56 AM
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).