Hello everybody
small problem with executing a non-select query with jDRC2
The code is this, the update on one table and the insert on the other are executed correctly
(and the RDCConnector does not give errors, on the contrary it says that the batch has been
executed correctly) but the routine never returns to the job done .. remains there waiting ..
What could it be?
Thank's
small problem with executing a non-select query with jDRC2
The code is this, the update on one table and the insert on the other are executed correctly
(and the RDCConnector does not give errors, on the contrary it says that the batch has been
executed correctly) but the routine never returns to the job done .. remains there waiting ..
What could it be?
Thank's
B4X:
Sub ChangeQty
ProgressDialogShow("ATTENDI")
Dim cmdList As List
cmdList.Initialize
Dim cmd As DBCommand = Utils.CreateCommand("set_gestione", Array(Main.act_variant))
cmdList.Add(cmd)
Dim cmd As DBCommand = Utils.CreateCommand("set_gestione_linee", Array(Main.act_variant, vendita.Text))
cmdList.Add(cmd)
Dim req As DBRequestManager = Utils.CreateRequest
Wait For(req.ExecuteBatch(cmdList, Null)) JobDone(j As HttpJob)
If j.Success Then
Log("Inserted successfully!")
ProgressDialogHide
End If
j.Release
End Sub