139
Views
3
Comments
Solved
Reactive several default screens depending on the role

So i have 2 roles and the role A goes to screen 1 after the login. Role B goes to screen 2 after the login.

What is the best solution to this scenario?

I did it like this:

But ofcourse i will have this warnings:

2023-01-07 12-51-11
Manuel Rodrigues
Solution

Hi @Flávio Monteiro ,

The best way to check roles in a reactive web application is by using the following script:

This way you avoid the multiple server calls warning. Just replace your 'CheckRoles' server action with this.

Regards,

Manuel

2024-03-04 12-06-32
Flávio Monteiro

Thank you for the answer.


Best regards,

Flávio

UserImage.jpg
Naku Sitsu

Can you provide your oml file? Thank you very much!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.