Sencha Touch 2 - Ext.device.SQLite.Database working? -


does have example of use of class ext.device.sqlite.database?

can provide code it?

i'm trying implement sqlite on st2 , build app native on android 4. when use websql, app didn't run, apperars 3 circles blinking , nothing happens.

thanks!

using proxy in webapps simple – switch proxy on model definition this:

ext.define('app.model.model', { extend: 'ext.data.model',  requires: ['ext.data.proxy.sql'],  config: {      identifier: {         type: 'uuid'     },      fields: [         ...     ],      proxy: {         type: 'sql'     } }}); 

the other thing worth noting that, because using database, save , load calls asynchronous. unlike localstorage, saves , loads instantly, need rely on sencha touch’s callbacks , listeners. load on both models , stores have callback, , save on model has callback


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -