Thanks!

Thanks!

Hey once again.

You're absolutely right this helps me very much for now. I almost did the same like the one you mentioned. But I should have looked at he query. Of course you must define this on the last property else it will not work

thx for sharing this nice plugin. It was exactly what i was looking for.

I am stuck with a little problem here (just started whith sencha touch).
I have a json file containing data i want to import into my db when the app is started for the first time.
The json is an export from a database and looks similar to this structure:

Databaseversion

Databaseversion

I'm struggeling a little bit with the changeversion of the database atm and I hope you may be able to help me.

My mainproblem is with this

PHP Code:

/** * @cfg {String} version * database version. If different than current, use updatedb event to update database */dbVersion: '1.0',

I update my database with he method changeversion from 1.0 to 2.0, altering a table and all that goes well. My problem now is I don't now how to update the one in the code above. If I set it to 2.0 it will fail at first startup but works after a restart.

If I let it on 1.0 it will never work. Could you explain what you mean with updatedb event or how I could update the version in SqliteConnection.js.

Hi Tomalex, I insert data to sqlite db withou proxy, but only with api instruction, bu I don't understand why the when I do customeStore.load() the it's empty. E declared proxy in model . . . Thank you in advance!

Ben, while I'm using SqliteProxy 2 and Sencha Touch 2, the same problem exists there too. I was able to finally track down the reason after back stepping through the code. It appears the system thinks it is a phantom record and because of this, it calls the create method instead of the update method. Unfortunately the only way around it so far I've found is to manually set the phantom flag:

Code:

newsRecord.phantom = false;

That seems to fix it, though it isn't a great thing to manually be setting that, but don't see any other way around it at this time.

Sqlite proxy

Sqlite proxy

Hello Team,

I am trying to use the Sqllite proxy for Sencha Touch. I got the latest code from the github.

Not knowing what exactly has to be done with it, cause am very new to Sencha touch and sqlllite,
I put the "sqlite.js in store", "override.js in model" and "sqliteproxy.js and sqlliteconnection.js in views".

I get an error that says sqlite.js not found. Any idea what am i missing in this.