I am trying to get some data from a server with a DBRequest using the DBRequestManager library and wait for the answer to do something else in the same sub when the answer returns:
B4X:
cmd.Initialize
cmd.Name = "update_usr"
cmd.Parameters = Array As Object(tempUsr)
Starter.reqManager.ExecuteCommand(cmd , "update_usr")
wait for JobDone
edit_field.text = "Result from server dbrequest"
Is this possible? or do I have to use the JobDone Sub and do what I need in there??
How i can call jrdc2 with wait for i try this but dont work. Dim cmd As DBCommand cmd.Initialize cmd.Name = "select" cmd.Parameters = Array() Dim ser As B4XSerializator Dim data() As Byte = ser.ConvertObjectToBytes(CreateMap("command": cmd, "limit": 0, "version"...
How i can call jrdc2 with wait for i try this but dont work. Dim cmd As DBCommand cmd.Initialize cmd.Name = "select" cmd.Parameters = Array() Dim ser As B4XSerializator Dim data() As Byte = ser.ConvertObjectToBytes(CreateMap("command": cmd, "limit": 0, "version"...