What are we going to achieve by Expression Language (EL)
In this article we will see how we can use expression language to mask salary amount for a specific role. Lets assume that we have a business requirement where a person having role HR Assistant should not be able to see salary of a worker if its more than 100, instead of that, application should mask it in the form of asterisks (*****).
Learn Page Customization (Personalization) along with Expression Language
Shorty we will go through the steps required to achieve business requirement we outlined earlier. However, it is good to know that Expression Language (EL) is used in conjunction with page composer (personalization) and usually considered customization. These customizations may get wiped out by oracle’s periodic patch and thus requires regular maintenance. As a best practice it should be our endeavor to minimize any short of customization as much as possible.
Steps to achieve this requirement through Expression Language
Here are the steps we need to follow to get this done. First thing we need to know is the code of the role HR Assistant, in expression language we need to use the code of the role. To get the code navigate to Tool » Security Console » On the left hand side ensure Roles is selected. On that page enter the role name and click on search.
Subscribe Now to Unlock Premium Content!
Choose a plan that fits your needs and stay ahead in your career with our expertly curated premium content.