Hi Everyone,
I though I would post my experience with PhoneGap database connection strings - might save someone a bit of time in the future and also appreciate any comments as to what might be occurring.
For my new PhoneGap project I have a connection string (Connection1) that maps to my local machine, but upon publishing to my server maps to the production database.
However, for my PhoneGap application (which is pointing to my production server) it seemed to be of two minds.
1) For any xBasic code or login functions it points to my prod database.
2) For any list controls or drop downs with SQL lookups, it points to my development machine database.
3) To add even more confusion, when running the app installed on its own on the phone this occurred, but in PhoneGap shell the app correctly points to my prod database in all instances.
So basically, the app, going through a production alpha webserver, is sometimes pointing to my prod database and sometimes to my development machine...
The solution, is to create a brand new connection string I called "PhoneGap" and map that to my prod database (on my development machine) and assign all components in the PhoneGap app to that connection string.
Any idea why this might be occurring? Somehow my production alpha server has a "ghost" connection string to my local dev machine that the app is finding.
Thanks Scott
I though I would post my experience with PhoneGap database connection strings - might save someone a bit of time in the future and also appreciate any comments as to what might be occurring.
For my new PhoneGap project I have a connection string (Connection1) that maps to my local machine, but upon publishing to my server maps to the production database.
However, for my PhoneGap application (which is pointing to my production server) it seemed to be of two minds.
1) For any xBasic code or login functions it points to my prod database.
2) For any list controls or drop downs with SQL lookups, it points to my development machine database.
3) To add even more confusion, when running the app installed on its own on the phone this occurred, but in PhoneGap shell the app correctly points to my prod database in all instances.
So basically, the app, going through a production alpha webserver, is sometimes pointing to my prod database and sometimes to my development machine...
The solution, is to create a brand new connection string I called "PhoneGap" and map that to my prod database (on my development machine) and assign all components in the PhoneGap app to that connection string.
Any idea why this might be occurring? Somehow my production alpha server has a "ghost" connection string to my local dev machine that the app is finding.
Thanks Scott
Comment