I have created an HMI in which I have different pages (Home, Settings and status). Assigning Home as pageRefId , I have no problem to move through the different screens of my HMI using the different navigation buttons.
The problem arises when I set the Login page as the main page (with the respective widget for the login in mappview) and enter the credentials. I would like that once the user and password entered are correct, it automatically redirects to the home screen.
Of course I have created different users and when I enter them in the login page, the widget responds with a message which says: the user has been changed successfully. Should I include a condition in which, when this happens, it redirects me to the home page?
I would personally prefer way that you create dialog with log in widget and you can then only close dialog after successful log in. For me it looks more professional, you can still see active page in this way.
Hi @zabalale7! I agree on @kovarj that the way to create a dialog and just close it after successful log in is a “cleaner” way to implement what you want. You can check here how to create a dialog box: B&R Online Help - Dialog boxes
I also attach an image of how to implement the event-action structure to navigate to home screen or to close the dialog after triggering the event of LoginSuccess.