Monday, December 30, 2013

Creating and Debugging Jdeveloper 12c Extensions project

In this post we will be learning how we can create a Jdeveloper extension project and debug/run it.

This post consist of only how to create extension project in Jdeveloper 12c workspace and run it. We will be developing extensions in the following posts.

Ok so lets get started.

Tuesday, December 17, 2013

Reusable Task Flow for Dynamic Tables in ADF

In this post we will be seeing practical example of reusing task flow to display same tabular format of data using same table component for different View Objects.

So suppose there are two pages in the application Employee and Department and both show respective data in Table format. Instead we can create a task flow which can take the name of the ViewObject as a parameter and display data on the same table dynamically. There will be only one page in task flow and one table component in the page which display data of employee and department dynamically based on corresponding VO name as input parameter to the task flow. Isn't this wonderful. Further you can reuse the same taskflow anywhere in the application by just changing the input ViewObject name.

Lets get started.

Friday, December 6, 2013

BI Integration with Webcenter Portal - Privileges on BI Side

In this short post we will be seeing how to integrate BI Reports with WC. Though there is a very good guide for integrating these two, this post will describe a step which got missed and even after following all the steps BI connection was not working correctly.

Following is the link to the PDF which is very useful and practical solution for BI and WC integration.

So after creating a successful connection to BI server from Enterprise Manager, Still I was unable to see BI reports when trying to add through composer.

Saturday, November 9, 2013

Webcenter Content Integration with Webcenter Portal PS7 - easy steps

In this post we will be looking at how to integrate Webcenter Content(earlier knows as UCM) with webcenter portal ps7.  This post is basically a refrence which we can look every time we need to integrate the two.

First and foremost requirement is to start the managed server on which UCM is there. So make the server up if it is not so. Hit the UCM url and it should greet you with login page of UCM like below.

Thursday, October 31, 2013

Save Logged in User details in ADF Session Scope

In real project implementations, there is often a need to save user data in session so that you can access. In this post we will be looking at how to save this user information in session when the user logs in into the application. Thanks to my colleague and friend Mohan with whom I discussed the same.

Lets get started.

Created a simple ADF Web Application in developer.  We will be using HR Schema and Employee and Department table.

Tuesday, October 29, 2013

Portal Builder in Webcenter PS7 with drag n drop feature

The latest release of Webcenter PS7 has a new and very useful tool called Portal Builder. Portal builder is now a single tool to edit everything in the portal and not only a single page as it was composer in earlier versions to edit a single page.

In this post we will be looking at this new Portal Builder tool in WC PS7 and will be using Drag N Drop feature of portal builder which is new in this release.

Monday, October 28, 2013

Client Side Validation in ADF Faces

I will be going through a simple use case in this post to implement Client Side validation in ADF Faces components. By default ADF Framework provides quite a few validators which can be used while implementing use cases. Sometimes there is a need to create your own custom validators. This post explains, how to create a custom client side validator.
Validation can be of two types. Client Side validation and Server Side validation. Ideally there should be a check (validation) on both sever side and client side code.

I will be using JavaScript to code the logic of validator and will invoke this through ADF Framework class.

Sunday, October 27, 2013

No Such File or Directory error on installing Jdeveloper 12C

Hi ,

Recently I downloaded Jdev 12C from OTN for my windows 7. I downloaded 64 bit version. When I tried to install it , I go the error below :

ERROR Launch : No such file or directory.

Friday, October 11, 2013

Adding Dynamic Columns to View Object in ADF BC

This post describes how we can add dynamic columns i.e columns at run time to the View Object.

The Application can be downloaded from Here.

Lets get started and create a simple ADF application say DynamicColumnExample. Create a new View Object and select it to be programmatic like below.

Monday, September 30, 2013

Cascaded List using ExecuteWithParams in ADF

Cascaded or dropdown list is one of them most common part of use case which is required to implement.
In this post we will create a cascaded dropdown using executewithparams.

I will enhance the application we created in last post  Retrieve selected value from selectOneChoice without writing a single line of code.

Requirement :- Having two drop down list. Region and Country. On selecting region, country dropdown list should refresh to have countries of the selected region in the first list.

The App can be downloaded from Here

Sunday, September 29, 2013

Retrieve selected value from selectOneChoice without writing a single line of code

While using selectOneChoice in the page to implement drop downs, it becomes very cumbersome to get the selected value from the list. One often has to write some lines of code in the managed bean to get the selected value from the drop down.

So in this post we will see how to get the selected value from the drop down list (af:seclectOneChoice) without writing a single line of code and without using any bean.

This uses the use of Variable Iterator which we discussed in the previous post.Variable Iterator in ADF to store values between requests

Friday, September 27, 2013

Variable Iterator in ADF to store values between requests

Variable Iterator is a powerful features provided by ADF which is being often not taken into consideration during implementation of Use Cases.

By Using Variable Iterator , variables can be saved between the requests and they can be refereed just by bindings name inside you beans. So using variables to store values between request is the way where variables can be accessed inside managed beans both having loose coupling between each other. You do not need to define a property(variable) inside a bean and bind it to the UI component.

So lets get started and see how we can use the power of Variable Iterator in ADF. We will be starting from the scratch and going step by step for clear understanding.

The application can be downloaded Here

Tuesday, September 24, 2013

Refreshing parent table on Closing Pop Up using returnListener : ADF

In this post we will see how to refresh parent table on adding a new row using a pop up.

So while creating a new row in the table component using pop up, after adding mandatory fields and pressing OK, the parent table is not refreshed to have the new row. Instead it shows a blank row. If you refresh the page then it shows the newly added row. We will fix this later in this post. Lets first dive in and create a basic sample app that will be used for this use case from scratch.

The application can be downloaded from here

selectManyShuttle with prepolulated list : ADF

This post talks about how to use af:selectManyShuttle component. Not only how to use it, but to display already selected set of values as pre populated list out of complete list.

So shuttle component has two tags which are of importance. 

<af:selectManyShuttle value = "selected values" has value attribute which refers to selected values and inside this tag there is <f:selectItems  value="all values". This selectItems tag refers to complete set of list.

Wednesday, July 31, 2013

Contextual Events - Basic Step by Step : ADF

So contextual events is a powerful event/handler framework which is provided by Oracle ADF. This framework facilitates inter region communication. Contextual Events are used in following type of communication.

  • Region to Page Communication.
  • Page to Region Communication.
  • Region to Region Communication.

We will be implementing Region to Region communication.

Use Case 
We will be creating two regions one page. One region displays an employee form with a button named "fire event". Second region just has an output component. So when first name of an employee is changed and fire button is pressed, the changed value of first name of an employee is shown in second region.This is how first region communicated with second region.

So lets get started

Tuesday, July 16, 2013

Integrating OBIEE with Oracle WebCenter Spaces

This demonstrates how to integrate OBIEE reports with webcenter spaces.
The Pre-requisites are :-
  •  WC Spaces is already installed, configured and up and running  with Database – Universal  ontent Management – Enterprise Manager – WebCenter Spaces.
  • OBIEE is already installed, configured, and up and running Database – OBI Enterprise Edition.

After this there is a very nice documentation on the OTN. Follow each and every step and you can see OBIEE reports in your Webcenter Spaces pages.

Here is the link OBIEE-WC Integration.

Happy Learning !!

Friday, May 24, 2013

JHeadstart - Forms2ADF migration

This post will be showing how to install Jheadstart extension in jdev and how to use forms2adf generator tool which comes with Jheadstart to convert oracle forms to ADF Screens.

Below is the file consisting of Oracle forms ,Schema and Xml's converted from oracle forms which are used in this tutorial.

Tutorial Files Download

Install Oracle JHeadstart Using “Check for Updates”

Note: In order to install full version of Jheadstart having forms2adf generator tool, one must be connected to oracle intranet while performing following steps.
Oracle JHeadstart is an Oracle JDeveloper extension (or "plug-in") that you install using JDeveloper's "Check for Updates" functionality.

Run the "Check for Updates" wizard
With JDeveloper 11.1.2 running, choose Help | Check for Updates... from the main menu. Click (Next>)on the Welcome page of the Check for Updates dialog.

Select the Source for Extensions
Ensure that you have selected the Open Source and Partners Extensions update center, then click (Next >).

Thursday, March 14, 2013

af:query - Removing Attributes from "Add Fields" dropdown in advance search

Ok sometimes we needed to hide some of the attributes from "Add Fields " in the advance search of the af:query panel component.

Lets do this :-

HR Schema.
ADF application with Employees View Object.