I deleted the Cache and Compiled folders just in case something is not compiling clean. Now the output in the console is this. I am not sure what this means.
All of the samples and documents for this plugin use "tx" or "transaction" inside of the db.transaction callback.
https://github.com/brodybits/cordova-sqlite-test-app
https://github.com/xpbrew/cordova-sqlite-storage#sample
I built this test app using AB 2020 as detailed in this link, and it also did not work. ( https://github.com/brodybits/cordova-sqlite-test-app/blob/master/www/app.js ). The only feedback I get from the console is that the database is waiting to close after I issued a close command. It seems like something is not getting released by the plugin.
Offline data is critical to this app... I have to get this or another offline solution working.
David, I got the ABD working. It is very helpful.
So, here is something interesting. I got this code to work when the first view event "Show" fires.
and here is the output of the console window...
However, after this JS code finishes, no other code will run. Even code I put into the success callback such as this...
...will not execute. I also quickly built this same code in the new AB 2020 with the same results.
This time I got an error that 'adb' is not regocnized as an internal or external command, operable program, or batch file
using the Run bat is launching the app on my connected tablet but the console window (npm) does not show any console.log out put.
I followed the directions here ( https://www.getappbuilderhelp.com/help/en-US/apache-cordova.html#batchfiles-integration ) and the app gets launched to my attached Andoid, but the debug console in the AB does not fire up
The larger issue is that I have about 10 Http Get calls to make do load data into the Sqlite database for offline use. I need to chain those calls together so they run in order of 1:Many relationships. Each Http control is going to have a matching Sqlite insert function similar to the one in this post. So what I was envisioning was some like:
If I add this callback to the db.transaction, I dont get the alert or an error:
this version does not alert either:
I am having problems getting a watcher to work, and I am trying to sequence some javascript to run in the right order.
Fire off watcher start....I get the "watcher start" alert first.
Run this JS code to create a SQlite database, create a table, and add a record.
Now set the watcher variable value to something...
I do not get any response from my watcher... None of this watcher code fires off
Not sure what is going on
I have this code to select a record set from a SQLite database using the cordova-sqlite-storage plugin.
Will AB script recognize that this variable is an array or do I need to append it to an array?
I am seeing that in all cases, this code will set controls as disabled = true.
This code is in the "ItemClick" event and the "Change" event. The default setting of [selectContract] Disabled = False
The control will alsays go from not disabled to disabled, but not toggle depending on the value typed in the typeAheadCustomer control.
David. Still having build issues. I installed NPM, Cordova, JDK, Android Studio with SDK 28 and 29.
Everybody can read the DecSoft support forum for learning purposes, however only DecSoft customers can post new threads. Purchase one or more licenses of some DecSoft products in order to give this and other benefits.
This website uses some useful cookies to store your preferences.