Android Question Is it possible to use DBRequestManager wth "Wait For"??

cheveguerra

Member
Licensed User
Longtime User
Hi everybody,

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??

Best Regards
 

DonManfred

Expert
Licensed User
Longtime User
 
Upvote 0

cheveguerra

Member
Licensed User
Longtime User
Thanks a LOT, I was searching for "DBRequest" ... and didn't get the right topics!! šŸ‘šŸ‘
 
Upvote 0
Top