S schalkgreyling Member Licensed User Longtime User Apr 10, 2017 #1 Good day Community, I've been working on some Apps using jRDC and I've recently wondered if there is a better way to get feedback in B4A/I when doing jRDC Queries. Example: When adding a new user, I would use something like: Code: Dim cmd2 As DBCommand cmd2.Initialize cmd2.Name = "add_user" cmd2.Parameters = Array As Object( Name,Surnmame) reqManager.ExecuteCommand(cmd2, "add_user") Obvisouly using "reqManager.ExecuteCommand" there is no "ReqManager_Result(result As DBResult)". So they only way I came up with to check whether the insert happened successfully is to then do a select on the user. Is there a "command" or success status that comes through which I don't know about? Thanks in advance
Good day Community, I've been working on some Apps using jRDC and I've recently wondered if there is a better way to get feedback in B4A/I when doing jRDC Queries. Example: When adding a new user, I would use something like: Code: Dim cmd2 As DBCommand cmd2.Initialize cmd2.Name = "add_user" cmd2.Parameters = Array As Object( Name,Surnmame) reqManager.ExecuteCommand(cmd2, "add_user") Obvisouly using "reqManager.ExecuteCommand" there is no "ReqManager_Result(result As DBResult)". So they only way I came up with to check whether the insert happened successfully is to then do a select on the user. Is there a "command" or success status that comes through which I don't know about? Thanks in advance
Erel B4X founder Staff member Licensed User Longtime User Apr 10, 2017 #2 You should handle JobDone. If Job.Success is true then the command has completed successfully. Upvote 0
S schalkgreyling Member Licensed User Longtime User Apr 10, 2017 #3 Thanks Earl, I didn't realize that jobDone is executed for commands :/ Silly me. Thanks a lot. Upvote 0