SPEL IN OAF (OA Framework)
Hi friends, we are going to discuss about the SPEL IN OAF (OA Framework). We will share the detail steps with complete screen shots to use the SPEL feature of OAF in OAF personalization. Using SPEL , we can make the OAF Personalization more dynamic. We don't need to hard code the OAF page fields properties using OAF personalization but even we can use the SPEL feature to set the OAF page fields properties Dynamically. SPEL is one of the most useful feature in OAF where you can put the conditions without any customization's or extensions in the OAF page itself. Please find below the Complete detail about SPEL in OAF (OA Framework).
Complete Tax Setups in Oracle Fusion
In personalization , We have two ways to change properties like Rendered or Read Only or Required.
1. First is we hard code a value of True/False during personalization.2. Second is we can use a SPEL syntax to these properties via personalization. SPEL is nothing but an expression that returns TRUE or FALSE.
Step by step to Implement the SPEL in OAF
In this post , I going to use SPEL feature. I have a requirement there is a responsibility named "OA Framework Toolbox Tutorial Labs".In the responsibility there is Page "Create Employee".In Employee page there is field "Hire Date".So I want to enable this field only for a Specific user.So how i can do this. I am going to do this by "SPEL" function.
The User is "OAF_USER" As Given Below.
SPEL in OAF (OA Framework) |
Step 1: Create Function
Go to responsibility "Functional Administrator".
Click under "Core Services" Tab.Under this select Function.
SPEL in OAF (OA Framework) |
Create function "XX_HIRE_DATE_REAF_ONLY"
This function will be of Type JSP
Name = XX Hire Date Read Only
Code= XX_HIRE_DATE_REAF_ONLY
Type=SSWA jsp Function
HTML Call= OA.jsp?page=/dummy
SPEL in OAF (OA Framework) |
Add caption |
SPEL in OAF (OA Framework) |
Step 2: In Menu screen, Create Permission Set named “XX Employee Date Read Only”
Menu = XX_EMPOYEE_HIRE_DATE_READ
User Menu Name = XX Employee Date Read Only
Menu Type = Permission Set
Add Function “XX Hire Date Read Only” to this, and ensure that Global Grant is removed by unchecking checkbox “Grant”.
Step3Grant this permission set “XX_EMPOYEE_HIRE_DATE_READ” to "OAF_USER" User Name
Navigate to Functional Administrator
Click on Security Tab, and click on Grants, and then Create Grant
Grantee Type = Specific User
Grantee = OAF_USER
Click on Next, and in Set field, attach the permission set “XX Employee Date Read Only”.
Click on Grantee Lov and then Select "OAF_USER".
Click on Next, and in Set field, attach the permission set “XX Employee Date Read Only”
Click Next and Finish.
Step 4Now personalize and set the Read Only Property to SPEL with value of SPEL being
${oa.FunctionSecurity.XX_HIRE_DATE_REAF_ONLY}
Navigate to responsibility "OA Framework Toollbox Tutorial Labs"
Click on Create Employee Page
Click on personalize page on top right corner
And personalize Hire Date
In the read only property, at site level, select SPEL and enter ${oa.FunctionSecurity.XX_HIRE_DATE_REAF_ONLY}
Click Apply.And then again open the Page to see the changes below.
Now Login again with user name "OAF_USER".
And then again go to the page "Create Employee Page". and see we have given the permission to this user so Hire Date will be enable for this User.
To Learn OAF Online , You can refer this Complete step by step OAF Tutorial
SPEL in OAF (OA Framework) |
2 comments:
This article seems to be just fine :) Could you guide me, if i want to enable any field using SPEL in OA Pages
Good blog,Very useful article,Thanks for sharing this information.
Oracle Fusion HCM Training | Oracle Fusion HCM Training in Hyderabad
Post a Comment