PDA

View Full Version : Sending data to Mainserver database.



Eswar Reddy
28 Aug 2013, 9:12 PM
How to send data from form to Offline storage and then offline storage to Main data base server,
Is it possible to send data from Offline Storage to main server database

fmoseley
30 Aug 2013, 12:55 PM
You can use any combination of model, proxies, native javascript and Ext.Ajax.request to accomplish your goals.

You can use a proxy on your model or native javascript, localStorage.setItem('key', 'data'), to save data to offline storage.
http://docs.sencha.com/touch/2.2.1/#!/api/Ext.data.proxy.LocalStorage

From offline to Main database you can retrieve your data with native javascript, localStorage.getItem('key'), and use Ext.Ajax.request to send to server.