Hi everyone,

i'd like to make a common registration. I send datas to server which generates the autoincrement id and I want to write it back to my localstorage proxy.

my code on buttonTap:
Code:
var store = Ext.data.StoreManager.lookup('onlineUser');


store.add({
    'name' : 'john',
    'vat_id' : '11111',
    'businesstypes_id' : 1
});
store.sync();


var offlinestore = Ext.data.StoreManager.lookup('offlineUser');
var onlinedata = store.getNewRecords();
offlinestore.add(onlinedata[0]);
offlinestore.sync();
It only writes the datas that I added. How can I add datas which were in the server response?

Thank you