Hello,
I have this code in a form called “ContractList”:
ContractList.onshow=function(){
//load the list group from sql lite
//query sqlite for the active contracts
DB = SqlOpenDatabase("pts.db3");
s=new Array(["SELECT id, contract_name FROM contract;" , resultHandler]);
DBRecords=[];
NSB.WaitCursor(true);
Sql(DB, s);
}
During runtime I query a remote database API with AJAX and get 1 record which I promptly write to a SQLite database. I can see the record in the table using Chrome dev tools.
The above function is not returning a row and I am not sure why.
Here is the console contents…
SQLResultSet {rows: SQLResultSetRowList, rowsAffected: 0}
1. insertId: (...)
2. rows: SQLResultSetRowList {length: 0}
3. rowsAffected: 0
4. __proto__: SQLResultSet`
Any thoughts?