B4X:
Sub SaveforServer( srv As String )
Dim np As Long
Dim c As Cursor
np = GetPkey
SQL1.BeginTransaction
Try
SQL1.ExecNonQuery2("INSERT INTO ForServer VALUES(?,?,0)", Array As String(np, srv ))
SQL1.TransactionSuccessful
Catch
Msgbox(" ForServ not saved"," Error ")
End Try
SQL1.EndTransaction
End Sub
The code above is used to insert a record into the ForServer table in my DB.
Fields: PID - Long, Qry - Text, Sent - Bool.
It is the same as any other table in my DB, yet everytime I compile and update the app on my test device(s), the records I saved in the previous session are not there - table is empty!!? If I shut down the device and start it back up, the same - none of the records I just inserted are there.
I use:
WebView1.LoadHtml(DBUtils.ExecuteHtml(Defs.SQL1, _
"SELECT * FROM ForServer" , Null, 0, True))
to see the data I just inserted in a webview (Thanks Erel - this is sweeeet..).
No code exists to ever delete this records.
The records in all other tables are still intact - no problem - ever.
Any Suggestions?
Never had this issue before with many tables and records I have created in this and other apps.
I could post the entire project if need be.
Thanks