I am running some code in B4XPage_Appear to make sure the user has provided all of the necessary information before proceeding - only tested in B4J.
The problem I am having is if I remove the page with
Then the sub B4XPage_Appear doesn't run again until I close and reopen the app.
Don't know if this is a bug or if I should be handling this another way.
Thanks for any help.
B4X:
Private Sub B4XPage_Appear
If AddOrEditMode = "AddOrEdit-Edit" Then
Log(B4XPages.MainPage.GroupCmboTxt)
Dim S As String = B4XPages.MainPage.GroupCmboTxt
Log(S)
If S.Length = 0 Then
Dim sf As Object = xui.MsgboxAsync("No Group selected. You must select a group and user to edit", "Invalid Group")
Wait For(sf) Msgbox_Result (Result As Int)
B4XPages.ShowPageAndRemovePreviousPages("MainPage")
Return
End If
.
.
.
The problem I am having is if I remove the page with
B4XPages.ShowPageAndRemovePreviousPages("MainPage")
Then the sub B4XPage_Appear doesn't run again until I close and reopen the app.
Don't know if this is a bug or if I should be handling this another way.
Thanks for any help.