EL expression in VB studio
Summary:
Hi Experts,
We need assistance in figuring out how to customize the below EL expressions in VB Studio.
1. EL expressions on Edit/ ADD button:
(#{backingBeanScope.DemographicInfoBean.editRendered[row]['Legislation;Ethnicity;Religion'] and ((backingBeanScope.DemographicInfoBean.isElevatedUser) && (securityContext.userInRole['SE_HR001,SE_HR002,SE_HR003,SE_HR004,SE_HR011,PER_HUMAN_RESOURCE_ANALYST_JOB,O_HRANALYST_VIEWALL_DATA'])) || ((!backingBeanScope.DemographicInfoBean.isElevatedUser) && (securityContext.userInRole['SE_ESS_001,SE_ESS_002,SE_ESS_003,SE_ESS_004,SE_ESS_006,SE_ESS_007']))}
2. There are restrictions on some fields, such as "Read Write" access should be enabled for HR, not for Employees.
#{((HcmFusePlusBean.userPersonId != bindings.PersonId.inputValue) && (securityContext.userInRole['SE_HR001,SE_HR002,SE_HR003,SE_HR004,SE_HR011,PER_HUMAN_RESOURCE_ANALYST_JOB,O_HRANALYST_VIEWALL_DATA,SE_HR00P2_AOR_LE_ORG_TREE_001_DATA'])) || ((HcmFusePlusBean.userPersonId == bindings.PersonId.inputValue) && (securityContext.userInRole['SE_ESS_006, SE_ESS_011']))}