Showing posts with label OBIEE 10g. Show all posts
Showing posts with label OBIEE 10g. Show all posts

Wednesday, April 10, 2013

DML operations with Evaluate


DML operations with Evaluate

Is it possible to do a DML operations, Insert/Update/Delete with Evaluate function?

Yes, We can do it. 


If we issue an Evaluate function in the report, the BI query will be something like :

 Select Evaluate('f1(%1)',Table_Name.Column_Name ) from "Subject Area" 

In Oracle, its not possible to do an Insert/Update/Delete from a select clause.

So in order to achieve this We need to have a Clause 'Pragma Autonomous_transaction;' in the underlying function called in the Evaluate.

Pragma Autonomous Transaction: 

Definition : 

An autonomous transaction is an independent transaction that is initiated by another transaction, and
executes without interfering with the parent transaction. When an autonomous transaction is called, the
originating transaction gets suspended. Control is returned when the autonomous
transaction does a COMMIT or ROLLBACK.

Example: 

Create or replace function test_proc( param IN VARCHAR2 )
return INTEGER as
PRAGMA AUTONOMOUS_TRANSACTION;
Begin
  update <table> set <column1> = param ;
    commit;
 end test_Proc;
-------------------------------------

As per the definition, we can make this Insert/Update/Delete as an independent transaction from the main report and can perform DML operation.

Monday, April 8, 2013

Oracle BI dashboard design guidelines


Oracle has provided guidelines for designing OBI dashboards.

Please follow the link below to check out the design guidelines :

OBI Dashboard Guideline


With Oracle, there is always information redundancy and sometimes its difficult to figure out few process/guidelines/help from oracle portal.
So its good to take a copy of these guidelines and keep it aside for your reference ;)

Thursday, April 4, 2013

ToolTip in OBIEE reports onMouseOver

 ToolTip in OBIEE Reports

When we hover on any report, we can show a tool tip to the user. Not only the same column text, we can show other column values as a hovering text. 

In 'Column Properties' we use 'Custom' or 'HTML' data format to achieve this,and, in 'Edit Formula' you can write HTML codes. 


How to do it :
To demonstrate this,  I am choosing 2 columns, LOB & Product. When I roll over my mouse on 'Product' I want to get 'Brand' as my tool tip.

Step 1: In the 'Edit Formula', I am introducing HTML codes. 

Step 2: In the 'Column Properties' , under 'Data Format' tab, I am choosing HTML 





















Note:

1) I have used <HTML><B><SPAN> instead we can use <SPAN>, no need to mention <HTML> tags, just for this demo I have used <HTML> tags in column properties
.
2) For Numeric columns, use Cast functions to convert the Numeric data to Char, like , cast ( year as char(4) ) 

3) Under Column Properties, Data Format Tab: We can either select 'CUSTOM' or 'HTML'