Hi there
I hope someone can help me. I have an android app that is used by remote workers using mobile PDAs. They collect data in the field and this is saved on the local SQLite DB on the devices. At the end of the day, the workers hand in the devices and I need them to click a button to upload data from the local SQLite DB to a remote MySQL DB.
I know how to:
Can this be run in a loop after getting resultset?
Any ideas?
I hope someone can help me. I have an android app that is used by remote workers using mobile PDAs. They collect data in the field and this is saved on the local SQLite DB on the devices. At the end of the day, the workers hand in the devices and I need them to click a button to upload data from the local SQLite DB to a remote MySQL DB.
I know how to:
- run a SQLite query to get results on the devices
- Get values from the local database
- configure jRDC, run DBCommand, configure B4J server, config file etc.
Can this be run in a loop after getting resultset?
B4X:
Dim cmd As DBCommand = CreateCommand("Insert_Entry", Array(GetString(Column_A), GetString(Column_B)))
Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null)
Wait For (j) JobDone(j As HttpJob)
If j.Success Then
Log("Inserted successfully!!!!")
Else
Log("ERROR: " & j.ErrorMessage)
End If
j.Release
Any ideas?