Roles

Hi Guys,

I am developing an application of Employee portal and facing some difficulties in it.

How to display the role of specific user . I  have use this in expression but its not working properly. It is showing same role for all the users. See the userInfo web block.

 "(" +GetRoles.List.Current.Role.Name+")"

Also how to display the saved role in drop-down list on edit option.

Like Sayali username have an manager role how to display this on edit option dropdown.

EPES.oml

Hi Rohan,

I updated your .oml, please take a look.

Please note that I follow your logic so assume that 1 user just has 1 role.

Cheers,

Khuong

EPES.oml

Not sure what you need in your userstory, but 2 things:


- you have no link with the GetRoles aggregate, so you are correct its showing the same role for every user.

- Per definition a user can have 0-n roles assigne,d but your screen only shows 1 with a dropdown. I think it should be a list. and you need to have the entity User_Role or User_Effective_Role to display assigned roles.

How can I do this please send me an updated .oml

I think you need to add this entity

And you need to add this filter as well



But remember, this filter here below will give you just the roles of your espace


Hey ,

I have try this but not working .

Hi Rohan,

I updated your .oml, please take a look.

Please note that I follow your logic so assume that 1 user just has 1 role.

Cheers,

Khuong

EPES.oml

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