Android Question Not executing the db query and activity was sent back to the main activity

Marlou Fin

Member
Licensed User

Hi Erel and Experts out there,

Following the jRDC2 tutorial by Erel and it's working fine with only one activity. Getting issue now when I have multiple activity. The Main activity is load the login form and if the password is valid it will go to the Main_Menu activity. Trying to call a select statement using to load customer but it's going back to the Main activity which is the login form. No error that are showing even I added try and catch.

Please find attached video for reference.

Thanks and advance
 

Marlou Fin

Member
Licensed User
I already figured this out by moving the code from main to module.

before:
Sub CreateRequest As DBRequestManager
Dim req As DBRequestManager
req.Initialize(Me,rdcLink)
Return req
End Sub

after:
public Sub CreateRequest(target As Object, rdcLink As String) As DBRequestManager
Dim req As DBRequestManager
req.Initialize(target,rdcLink)
Return req
End Sub
 
Upvote 0
Top