Sunday, September 16, 2012

OBIEE 11g – Export/Print to PDF Does Not Include All Rows


We face this issue about export/print of an analysis to pdf format in OBIEE 11g, where it dos not export all rows. But if you export to an Excel or HTML, it exports all the rows without any issue. 
This issue has nothing to do with the number of rows but the file size which is mentioned in Config File and is limited to 8MB by default.
Need to change the size limit in one of the configuration files. Follow the below steps to achieve it.

1. Navigate to <BIHome>\instances\instance1\config\OracleBIJavaHostComponent\coreapplication_obijh1\
2. Open config.xml file in an editor and search for  the below lines
        <XMLP> 
            <InputStreamLimitInKB>8192</InputStreamLimitInKB>
            <ReadRequestBeforeProcessing>true</ReadRequestBeforeProcessing>
        </XMLP>3. The default size is 8 MB (1024*8 = 8192), you can increase to the size you want. If you want to set unlimited, then replace 8192 with 0 (zero) but it’s not recommended.
4. Restart BI Services.
For example: you can increased file size to 16 MB like in instance, 
      <XMLP> 
                    <InputStreamLimitInKB>16384</InputStreamLimitInKB>
                    <ReadRequestBeforeProcessing>true</ReadRequestBeforeProcessing>
      </XMLP>





Enjoy till next time :)

Saturday, September 15, 2012

Adding Mouse hover text on column Rows/data in OBIEE 11g

Creating a report that contains HTML links or mouse hover is quite easy now. You can even “parameterize” the HTML link to include values from other columns on a row by row basis. For example, if you have a product column, and wish to create a column containing a URL which will redirect the user to a Google search using the Product  value as the keyword, here are the steps to implement it in OBI report :

1.     Create a report, and add any column
2.     Choose the Edit Formula for that column
3.     Enter in HTML using OBIEE syntax, such as this in formula area:
a)   to add hyper link:
‘<a target=”_blank”
href=”http://www.google.com/search?hl=en&q=’ || Products.Name || ‘&btnG=Google+Search”>’ || ‘</a>’
b) to add mouseover :
      ‘<a title=”Product Revenue Loss/Profit”>”Column_name”</a>’
4.     The single quotes signify a string
5.     The pipes || (in hyperlink) act a string operator to concatenate HTML with an actual OBIEE column.
6.     NOTE: we’ve added the target =”_blank” tag to open the URL in a new browser window
7.     NOTE: if the column values contain spaces, you may need to enclose the column in a REPLACE function to replace spaces with %20, which represents a space in a URL.
8.    NOTE: In mouseover HTML text,  you can place the mouseover text in quotes and then mention the column name.
9.     Once you are finished editing the formula click OK and then go to the
   Column Properties -> Data Format tab. Override the       Default Data Format and select Treat Text As : HTML

Saturday, August 11, 2012

Using Repository Variables in Conditional Formatting in OBIEE 11G Reports


Using Variables in Conditional formatting in OBIEE  11G
You can reference variables in several areas of Oracle BI Enterprise Edition, including in analyses, dashboards, KPIs, agents,filters and conditional formatting. There are two types of variables that you can be created through RPD :
  • Session
  • Repository
Session Variables
A session variable is a variable that is initialized at login time for each user. When a user begins a session, the Oracle BI Server creates a new instance of a session variable and initializes it.
There are two types of session variables:
  • System — A session variable that the Oracle BI Server and Oracle BI Presentation Services use for specific purposes.
System session variables have reserved names that cannot be used for other kinds of variables (such as static or dynamic repository variables and non-system session variables).
  • Non-system — A system variable that the administrator creates and names. For example, the administrator might create a SalesRegion non-system variable that initializes the name of a user's sales region.
The administrator creates non-system session variables using the Oracle BI Administration Tool.
Repository Variables
A repository variable is a variable that has a single value at any point in time.
There are two types of repository variables:
  • Static — Repository variables whose value persist and do not change until the administrator decides to change them.
  • Dynamic — Repository variables whose values are refreshed by data returned from queries.
The administrator creates repository variables using the Oracle BI Administration Tool.


Syntax for using Repository variable in Conditional Formatting:

We have a reporting requirement where the Client wants conditional Formatting to be maintained from DB / RPD. So we tried lot of ways using dynamic filters, BINS but nothing worked out. Then we made a way by creating CASE statements and then utilizing its value in Conditional Formatting.
1)    Repository Variables are defined using the Variable Manager within the Oracle BI Administrator (Manage > Variables).



2)    Create a Dynamic variable and a INIT block in RPD


Now we have 4 Dynamic variables seen above. 
3)    We planned to have conditional formatting  using 2 values as below in Answers Page, Column Threshold_value (column -> Edit Properties-> Formula) :
Case when Threshold_value < 143.1_low then 0 When  (Threshold_value >= 143.1_low and Threshold_value < 143.1_high) then 1 Else 2  END

4)    Then go to same column-> Column properties-> Conditional Formatting
Add condition on column “ Threshold_Value” as :
Threshold_value = 1 , and in formatting set color = Red
Threshold_value=2 , and set color = Yellow.