Wednesday, February 27, 2013

OBIEE 11g - ADF Integration


Embedding business intelligence objects allows you to access the Oracle BI EE Presentation Services catalog and choose Oracle BI EE objects, such as analyses and dashboards, to include in ADF pages

When you add a business intelligence object to an ADF page, that page will contain a reference to the business intelligence object and does not contain a copy of the object. When the business intelligence object is modified and saved to the Oracle BI EE Presentation Services Catalog, any changes will appear in the ADF application when the user runs the form

ADF ?

MVC (Model-View-Controller) separates the application into
‣ A Model layer that handle interactions with data sources
‣ A View layer that handles the UI, and
‣ A Controller layer that handles the application flow

Oracle BI and ADF Components: 

Oracle Enterprise Repository Adapter:
Provides the ability to add repository connectivity capabilities for presentation services

Business intelligence ADF view regions:
Provides the agility to browse presentation catalog through JDeveloper resource catalog and add BI objects to an ADF page

Business Intelligence Composer:
Provides easy-to-use BI composer report wizard that allows you to quickly and easily create edit or view the design of BI analyses from ADF applications

Business Intelligence Logical SQL view objects:
Provides the ability to create a logical SQL statements access the BI serve the and fetch BI data and bind the data to native ADF components for inclusion on an ADF page

Business Intelligence Soap Connection:
Provides the ability to create a BI Soap connection to access the presentation catalog


Prerequisites:

OBIEE 11.1.1.6


JDeveloper 11.1.1.6.0(Oracle JDeveloper 11g (11.1.1.6.0) (Build 6192)Installations)


Make sure that you have installed correct version of JDeveloper open

 JDeveloper -- Help -- About


Get all the listed BI ADF components from below links and make sure you have right version of component 


Business Intelligence ADF View Regions
Business Intelligence ADF Task Flow
Business Intelligence Soap Connection
Business Intelligence Logical SQL View Objects

You can get it through online using JDeveloper 

Help -- Check for updates (Oracle Fusion Middle ware Products)


If you download it from Oracle portal you can install from download files 



 
Integration of OBIEE and ADF using JDeveloper :
 

1. Creating an BI Presentation Services component 

 You can create multiple presentation services components and connect to BI catalog

click on View -- Resource palette





Create New Connection BI Presentation Server 




 Create connection in Resource palette which will be available for all Roles of JDeveloper

a) Give the connection Name 

b) Specify the location of the BI Presentation Services



Leave the WSDL Context section as default and also Static Resources mode to Auto which
will take the default HOST URL of BI Presentation Services

Give the weblogic admin credentials if you don't have impersonation enabled make it false





Test the connection :  



once the connection is established you should able to see BI Presentation Content under IDE Connections:




Creating ADF page with BI Presentation Content :


1) Open JDeveloper and click on New Application ---> Generic Application




2) Click OK and Next  -->Project Name (Sales)-- Pproject Technologies --> BI ADF View Components -- Finish 



3) Create a JSF page by click on NEW button --> JSF






You can see Sales Revenue.jspx is the web page created where you can add your BI Components to view on portals now click on project properties and check the Technology scope for BI ADF  View components and click OK








Now Drag and drop the content from your BI catalog to Sales Revenue.jspx page




Click on Source button to check the code for the same content now save the application and
Right click on the Content ---> RUN

you can see the report opened in browser with complete data (Make sure that your web logic is up and running)

The report is running now on 'http://localhost:7101/faces/Sales%20Revenue.jspx'