In an application, I want to enter different screens based on different permissions.
For example, the permissions of ordinary employees and managers are different, and the images that can be seen are also different.
How can I solve it?
Hi @Naku Sitsu, in that case you can use the check userRole action in the screen events and based on the roles you can display the respective screens.
For reference:
1. https://www.outsystems.com/forums/discussion/67657/show-different-homescreens-after-login-for-different-user-roles/
2. https://www.outsystems.com/forums/discussion/71236/reactive-several-default-screens-depending-on-the-role/
3. https://www.outsystems.com/forums/discussion/80336/how-to-redirect-to-pages-based-on-user-roles-and-also-menus/
Hope it helps.
Have you tried to search first for a possible answer on the forum? There might already be an answer which can help you.
Theres this way
https://www.outsystems.com/forums/discussion/67657/show-different-homescreens-after-login-for-different-user-roles/
https://www.outsystems.com/forums/discussion/71236/reactive-several-default-screens-depending-on-the-role/
https://www.outsystems.com/forums/discussion/80336/how-to-redirect-to-pages-based-on-user-roles-and-also-menus/
Let us know if that helps you!
I gave a simple demo, how can I click the button on the login screen to enter different screens?
Hi @Naku Sitsu,
You've missed the input parameter (GetUserId()) for the check patient role action. Other than that, everything is fine.
After logging in, I can only reach the doctor screen. How can I click the login button to enter the patient screen?
Please.dont ask same question more than once, I close this discussion.
It can continue here
https://www.outsystems.com/forums/discussion/90077/different-roles-cannot-enter-different-screens/