Assign a user role to button or link

Assign a user role to button or link

  
Hello 

Is it possible to assign a User Role to a  button or link in  screen  in Service Studion V 7.0 ? I know that we can assign a user role to a screen as a whole but I need to assign User Roles to screen specific elements.

Pls let me know.

Thanks & regards
Ravi
Hello Ravi,

What I usually do that is when I need to assign certain specific roles to any screen elements, I enclose those elements in a 'If' block and then assign the roles as the 'If' condition.

Hope you got it. Do let me know if it works.

Cheers,
Nikhil Shravage.
Thanks a lot Nikhil for your reply. I am just wondering it there is any better/easier way than this ?

Thanks & regards
Ravi 
Hi Ravi,

Have you tried using the Check<roleName>Role(UserId:) functions on the Visible or Enabled properties of your elements, depending on what you need?

Best regards,
I tried your option and it works perfectly. 

Thanks & regards
Ravi