Friday, August 15, 2014

Personalization using MDS in Oracle ADF

Personalization for the users is the most wanted features in Enterprise applications nowadays. This gives user good experience and makes him to decide what and how he needs to see things in Enterprise Applications .

This post we will see how can we do User level Personalizations in Oracle ADF Applications and steps to configure it.

Example uses Jdev 11.1.1.7. Lets get started !


Created a simple ADF Application. Created BC from HR schema consist of EmployeesEO/VO and DepartmentsEO/VO and AppModule.

Implemented ADF Security. This is required since we are doing personalization for a particular user


Saturday, August 2, 2014

SecurityContext TaskFlowViewabe in ADF

Many times in our ADF Applications, we create Module workspaces which are specific to module and use these workspaces as ADF Shared Libraries in the Master Application. Master application has JSPX pages which uses adf task flows from shared libraries as regions in them.

While enabling ADF Security and granting permissions, authorizations are given to only Pages and task flows. There are other components on the page which also requires authorizations. For example Widgets/Buttons/Headers ,they should be shown to the user only when they are authorize to.

So for the above said use case, most common solution is SecurityContext which is provided by ADF Framework. Below code is being set to rendered/visible property.

#{securityContext.userInRole['UserRoles']}

Sunday, June 15, 2014

Attributes in Page Templates ADF

In most of the applications, one of the most versatile reusable component that is being used is Page Templates. Page templates serve as a generic component which is used to define the structure and layout of the pages.

There are many use cases where there is a requirement to have different behaviour for some of the pages than rest of the pages using the same Page Template. In this scenario, the components for which different behaviour is required are made parametrize. These parametrized are provided in the form of attributes. These are simply variables which can be set in the Page which is using the Page Template having these variables.

Use Case : In this use case, we have a requirement that some of the pages should show error messages on the top of the adf editable form, while some pages should not show error message on top.

Thursday, June 12, 2014

Drag and Drop Movable Box in Webcenter Portal

Webcenter provides Out of the box component to create a wrapper (widget) which is movable. Moveable box provides drag and drop features where drag and drop can be done between the moveable boxes.

The component used to do this is panelCustomizable. One can use this component in through both Portal Builder as well as Portal Framework Application.

In framework application in Jdeveloper, panelCustomizable can be found in composer option in Components Palette.

Friday, May 23, 2014

AutoSelect & Deselect Checkbox in ADF Tree Component

This post is about how to implement a use case having checkboxes in ADF Tree component. Below is the use case :

Use Case
There is an ADF Tree component using Departments as master and Employees as child. Departments acts as parent node and has all the child employees under it in the Tree. Departments as well as child employees should have checkbox. When user checks the checkbox of a department , all the checkboxes of the child employees should be autoselected. And when user deselects the department, they should be deselected.

Friday, May 9, 2014

Parent to Region Communication using Shared & Isolated DataControls

In this post we will look at how Parent and Region communications are done in ADF. We will take two cases in this post. One is when by default Task Flows are set to have Shared Data Control scope and the other one is when Task Flows are set to use Isolated Data Control Scope.

Below is the picture which depicts what we are targeting to achieve.




Thursday, April 24, 2014

Unlocking HR Account in Oracle XE Database

In this post I will be showing the steps to how to unlock HR account in Oracle XE database. After some days, when you try to access HR schema, it says Account Locked. 

I always forget the steps in order to unlock the HR schema, so that's the reason I am writing this simple post.

Open command prompt and enter the command as follows :

sqlplus / as sysdba

This will not ask password and will open the SQL plus prompt.