Showing posts with label HTML. Show all posts
Showing posts with label HTML. Show all posts

Wednesday, November 02, 2016

OBIEE : Go Nav/ Go URL structure

The Go URL or Go nav is functionality of OBIEE, where summary reports  navigate to detail reports passing filters/options.

For example:

1) Basic structure:

http://<hostname>/analytics/saw.dll?Go&path= <full report path url>

2) To pass username and Password

http://<hostname>/analytics/saw.dll?Go&path= <full report path url>&NQUser=<username>&NQPassword=<password>

 3) To include Report links

Actual way to include the report links in drill/detail reports is to mention "&Options=x" in  GO URL path. The x can be one or more of the following letters:
  • m = Modify Request
  • f = Printer Friendly
  • d = Download to Excel
  • r = Refresh Results

 Like:  http://<hostname>/analytics/saw.dll?Go&path= <full report path url>&Options=md

or

http://<hostname>/analytics/saw.dll?Go&path= <full report path url>&Options=mfdr


4)  Printer Friendly. Results are in a printer-friendly format, without the paging controls, hot links, and so on.This is the format, "&Action=print" to be added in GO URL path

Like: ttp://<hostname>/analytics/saw.dll?Go&path= <full report path url>&Action=Print

5) Specific View. If your Detail report has more than 1 view of results (like Pivot/Chart/Bar graph etc) . This option shows an individual result view rather than the default compound view.
This is the format, where A is the name of the view:

http://<hostname>/analytics/saw.dll?Go&path= <full report path url>&ViewName=A


 6) To pass report filters:

Sometimes we get requirement in OBIEE summary report to drill to detail report passing few column filters, like: here we are passing 2 column values as filter in detail report. P0 defines the number of parameter passed including the type (equal/ >=  etc.)

http://<hostname>/analytics/saw.dll?Go&path= <full report path url>&Action=Navigate&P0=5&P1=eq&P2=<Parameter_Name1>&P3=<Parameter_value1>&P4=<Parameter_Name2>&P5=<Parameter_value2>



Note: Remove < > symbols. I have used them to highlight.

Wednesday, September 07, 2016

Different Tool tip for different column values in OBIEE11g/12c

In OBIEE 11g or 12c, we can add ToolTip to the report on columns. Last week i had a requirement to display different tooltips/text on every column value to users when user hovers on different row in that column of a report.
This is not an OBIEE feature. To get a solution to it, we can try using Javascript in Narrative view. But i tried a different solution.

Req: We have to display different text over different column values. For example below, we have to show Response values in ToolTip, when users hovers over the Product column. Responses can differ.






Step 1: So we created a Dummy KPI in RPD, called Responses and stored the different values (Good/Fair etc ) in it.
Step2: Now in Obiee Report, over the Product column made few changes:
     a) In the 'Column Properties' , under 'Data Format' tab, I am choosing HTML
     b) In column edit formula wrote below:

<HTML> <span title= ' || "Dim"."Responses"|| '>' || "Dim"."Product" ||' </span> <HTML>

Note:
i) You can skip using HTML.      
ii) You can write a Case formula in place of Product column, ie column on which you want the hover text.
iii) For Numeric column value, use Cast function to convert it to Char().


Courtesy: Google