T Tamer El-Shimy Member Licensed User Longtime User Mar 25, 2022 #1 As usual I've a login page instead of the general B4XMainPage Should I use Page Show and Hide Other: B4XPages.ShowPageAndRemovePreviousPages(LoginPage) ? It loads the page correctly but with the back button of Main Page? This fits me but still the Main Page displays. The other is : Page Show and Hide Other: Root.LoadLayout(LoginPage) Loads the interface layout , but It doesn't get the enhancements like RemoveLineFromEditText , LoadCredentials
As usual I've a login page instead of the general B4XMainPage Should I use Page Show and Hide Other: B4XPages.ShowPageAndRemovePreviousPages(LoginPage) ? It loads the page correctly but with the back button of Main Page? This fits me but still the Main Page displays. The other is : Page Show and Hide Other: Root.LoadLayout(LoginPage) Loads the interface layout , but It doesn't get the enhancements like RemoveLineFromEditText , LoadCredentials
LucaMs Expert Licensed User Longtime User Mar 25, 2022 #2 I think it is best to use the B4XMainPage as login page. If the data entered by the user is valid, using ShowPageAndRemovePreviousPages open a page that could be your app's Home page. I'm attaching a small test project just created. Attachments B4XPageLogin.zip 16.1 KB · Views: 243 Upvote 0
I think it is best to use the B4XMainPage as login page. If the data entered by the user is valid, using ShowPageAndRemovePreviousPages open a page that could be your app's Home page. I'm attaching a small test project just created.