I want to establish different views for different users in my application .
Hello Richard,
Could you please elaborate on what you mean by different views, is it referring to different landing screens or different view on same landing page or same landing screen with different look and feel?
Different Landing Screens - On the login button action you could check the role of logged in user and based on the assigned role redirect the user to intended screen.
Same Landing Screen but with Different View - On the login button action you can redirect the user to same landing screen, however on the screen add the logic to different sections/data of the screen to show/hide section/data based on the role of logged in user.
Same Landing Screen but with Different Look & Feel - On the same landing screen you could either apply the conditional CSS or might even create different sections with desired look and feel. Then apply the CSS or show/hide sections based on role of the logged in user.
Hope it helps!
Junaid
Hi @Richard Sandaramu, to establish different views for Admin, Project Manager, and Team Member roles in your application, you’ll need to implement a role-based view. Each user role can have customized permissions and interfaces based on their responsibilities.
Here are several steps.
1. Define User Roles Structure
2. Implement Role Checking Logic
3. Create Different UI Flows
4. Implement UI Variations
Hope it helps.
Thank you.
Hello.
No need to make things up. OutSystems already has Role and UserRole entities.
https://learn.outsystems.com/training/journeys/web-developer-662/role-based-security/o11/2307
You can make different pages, one for each role (and give access to no other role).
Or you can make a single page and use Ifs to show/hide different parts of it.
Hi @Richard Sandaramu,
You can implement different views for different users by using the built-in Role-based security model. Define roles in your module, assign them using the built-in User_Role entity, and control access to screens by setting role permissions in the screen properties. You can either create separate screens for each role or use a single screen and conditionally show or hide UI elements based on the user's role. This ensures users only see content relevant to their assigned roles.
Hope it Helps
Regards,
Yogesh
Hi there,
You can achieve different views for different users in a Reactive Web App by using role-based UI logic. Here’s how you can implement it:
If (CheckAdminRole())
Show Admin-specific UI
Else If (CheckProjectManagerRole())
Show Project Manager-specific UI
Else
Show Team Member-specific UI
If CheckAdminRole()
Navigate to AdminDashboard
Else If CheckProjectManagerRole()
Navigate to PMDashboard
Navigate to TeamMemberDashboard
This approach keeps your application secure and user-specific. Let me know if you’d like a sample OML or help setting it up.
Thanks!