Hi, I need to get the current security role that controls the current table
example :
"Social Table" exist on "Social Salary Role"
I need x++ code to show the "Social Salary Role" when the user open the "Social Table"
select securityRole
join securityUserRole
where securityUserRole.SecurityRole == securityRole.RecId
join userInfo
where userInfo.id == securityUserRole.User
&& userInfo.id == curUserId()
this code get all role that associate with current user
what condition I have to add to select the only active role