0
内のすべてのレコードの変更値は、私は私がフォームにユーザーが入力したデータを保存するストアCurrentStoreを持っています。ユーザーが「サーバーと同期」ボタンを押すと、データをCurrentStoreからHistoryStoreに移動し、サーバーにプッシュする必要があります。それについてどうすればいいですか?煎茶タッチ:店舗
ストア:
App.stores.CurrentStore = new Ext.data.Store ({
model : 'ExpenseReport',
sorters: [{
property: 'date',
direction: 'DESC'
}],
autoLoad : true,
autoSave : true
});
モデル:
BReimb.models.Expense = Ext.regModel('Expense', {
fields : [
{ name : 'id', type : 'integer'},
{ name : 'categ', type : 'string'},
{ name : 'cost', type : 'auto'},
{ name : 'date', type : 'date'},
{ name : 'desc', type : 'string'},
{ name : 'paymeth', type : 'string'},
{ name : 'userlogged', type : 'string'},
{ name : 'synced', type : 'string', defaultValue: 'no'}
],
proxy : {
type : 'localstorage',
id : 'user-reimb'
}
});
私は今、私が店を同期するために使用することのように空のハンドラ関数を持つツールバーの簡単なボタンを持っており、外部サーバーデータベース。私は何をすべきか ??