Disclaimer

All of the topics discussed here in this blog comes from my real life encounters. They serve as references for future research. All of the data, contents and information presented in my entries have been altered and edited to protect the confidentiality and privacy of the clients.

Friday, March 22, 2013

Working with Go URL and passing parameters to dashboards and reports

Hello

It's been a while. Today, I am going to talk about GO URL and how to make it work. This can be very handy once you make it work. 

The idea of GO URL is that, it will be able to navigate to other BI Contents, such as reports and dashboards while passing certain parameters along. This can be very useful if you are coming from external application navigating into OBIEE. 

So let's look at a few URLs I wrote and we will break it down:




1. This one takes you to the report and passes 2 parameters, components and event time


So here lets look at the part 'Go&Path=' onward.

/shared/inSight+SMB/Administration/Audit+Log/Audit+Log+Report : This represent the location of the report that I want to get to. I am filling all of the spaces here with '+'.

'&Action=Navigate': This is the commend for navigation.


Following are the parameters which are represented by P0, P1, P2 etc.
P0 determines the number of parameters I am going to pass. In this case, it is 2: column 'Component' and column 'Event Time', which you will see later in the url.

P1 represents the operators. 'eq' means equal.

P2 represents the column name in the format of table name.column name. Here if the name contains space, then the whole name needs to be double quoted and space needs to be replaced with %20. Therefore, so Audit Log. Event Time becomes “Audit%20Log”. “Event%20Time”.

P3 Represents the value that you are going to pass, the hardcoded value needs to be double quoted as well.

When you want to pass more parameters, first change the value of P0 accordingly, in my case it is 2. You will then use P4, P5,P6 the same way as P1,P2,P3. This will go on until all of your parameters are defined.  The value of my P4 is 'bet', which means the operator for this one is 'between'. The way you define 2 values for 'between' is = 2+"value1"+"value2"

Last but not least, you attach '&NQUser=Administrator&NQPassword=justforyou', which is the username and password of OBIEE to your url.

That's it, now we can test it out in both OBIEE 10G and 11G:

10G:


11G:






This one takes you to the dashboard and passes 1 parameter Date Day = 2013-03-12:


Here, things are pretty much the same way as the above url, just a few different things. Here the 'Go&Path=' doesn't quite work, therefore we have to use  'Dashboard&Action=navigate' followed with parameters.. We are just passing 1 parameter in this case, which is date.

'&Page=' part defines the name of the dashboard page I am going.



 '&PortalPath=' This part is the path of the dashboard. Notice that every '/' has to be replaced by '%2F' and all of the spaces filled with '%20' or '+'.

Now let's test this url in both 10g and 11g:


10G:


11G:





This is pretty much it.

The third link does the same thing as the second link except the parameter is a little different, I will let you figure it out then.




Note:

Here are a list of operators and meanings from Oracle Documents.


Operator
Meaning
eq
Equal to or in.
neq
Not equal to or not in.
lt
Less than.
gt
Greater than.
ge
Greater than or equal to.
le
Less than or equal to.
bwith
Begins with.
ewith
Ends with.
cany
Contains any (of the values in &P3).
call
Contains all (of the values in &P3).
like
You need to type %25 in place of the usual % wildcard. See the examples that follow.
top
&P3 contains 1+n, where n is the number of top items to display.
bottom
&P3 contains 1+n, where n is the number of bottom items to display.
bet
Between (&P3 must have two values).
null
Is null (&P3 must be 0 or omitted).
nnul
Is not null (&P3 must be 0 or omitted).
&P2=ttt.ccc
In this parameter, ttt is the table name and ccc is the column name. If the table or column contains spaces, it must be quoted with double-quotes. Spaces should be escaped as %20, for example, Measures."Dollar%20Sales".
&P3=n+xxx+yyy+...+zzz
In this parameter, n is the number of values, and xxx, yyy, and zzz are the actual values.
Note: If the value of P3 begins with a numeric character, the entire value must be enclosed in quotes. For example:
saw.dll?Go&Path=/Shared/Test/SB2&Action=Navigate&P0=1&P1=top&P2=Customers.Region&P3="7West"



Thanks

Until Next time

3 comments:

Coursework Writing Service said...

Really great post, Thank you for sharing This knowledge.Excellently written article, if only all bloggers offered the same level of content as you, the internet would be a much better place. Please keep it up!

Mehak said...

Hi Everyone,

Can anybody tell me how can we pass null value as a filter to column in child report using GOURL in OBIEE as i have used the below URL which is not working and applied a filter is prompted for the same column in child report:
@[ps]analytics/saw.dll?Go&Path=@{Path}&Action=@{Action}&p1=1&op1=null&col1="table name"."column_name"&val1=0

Thanks in advance!

Riz said...

thx a lot

i'm trying with Oracle Business Intelligence 12.2.1.4.0 but login page appear

this id the link

http://10.111.56.xxx:9502/analytics/saw.dll?Dashboard&NQUser=coluyn&NQPassword=maben&Action=navigate&PortalPath=/shared/REGION Analysis/_portal/Regional Focus Dashboard

Related Posts Plugin for WordPress, Blogger...