Presentation variable in dashboard prompt

Hi All
I have a report on a dashboard page which navigates to another report on a different dashboard page (on the same dashboard). The
first dashboard page has a prompt which needs to be passed as a filter to the navigated report i.e. Report1 on dashpage1 has Level1 prompt
whose value must be passed to Report2 on dashpage2 which has Level2 (hence Report2 must show Level2 values for the passed Level1).
1) I tried setting prompt1 on first page scope to Dashboard but it didn't help.
2) I am trying to set a presentation variable 'level1_val' in the prompt1 and then in report2 say Level2 = @{level1_val} in Answers (filter->add presentation variable, I did not provide a default value). But when I navigate, Report2 shows no results. On adding the filter value, I noticed that the condition in Report2 is Level1=level1_val (Its taking level1_val presentation variable as a string and matching it to the Level1 prompt value). Level1 prompt value is a string. Is there a format say '@{level1_val}' that I should use in the column filter (I've tried this too)?
Thanks
Ananth

You are using dashboard url option in the code from the report 1 to call dashboard page 2 (with report 2).
You have only dashboard prompt for level 2 in the dashboard page 2?
1. If you put in the filter of the second report column is equal to presentation variable that you set in the first dashboard prompt this will not work, you'll get COLUMN is equal to pres_var. When you are using DASHBOARD URL you need to pass presentation variable to the filter of the target (dashboard page prompt). If the target page prompt does't exist the parameter is parsed to the filter of all reports (or just one) that has this COLUMN set to is prompted.
2. Go to the report 2 and set level 1 is prompted.
3. Go to the report 1 and write dashboard url correctly with passing presentation variable like:
'<--a href=http://.../saw.dll?Dashboard&PortalPath=/shared/.../_portal/Yourdashboard/&Page=Yourdashboardpage
&Action=Navigate&col1=TABLE.COLUMN&val1='||REPLACE(REPLACE('@{pres_var}', ' ', '+'), '+', '%2B')||'>Link
<--/a>'
TABLE.COLUMN is a target column to which you want to pass parameter (presentation variable), it can be on the prompt or just set to is prompted in the report 2.
But if you want to pass presentation variable to the filter of the dashboard page 2 prompt which is level 2 this could be a problem (if you are using SQL result option in the dashboard prompt in the second page to show level 2 and want to filter it by pres_var that you set in the first page prompt with level 1 this is not possible, because you can only pass parameter to the page prompt field, but you can set dummy hidden prompt in the second page and pass level 1 to it and then set new presentation variable that is available only for the second page and then use this presentation variable as the filter in the second page prompt for level 2 in the filter to show only level 2 values for the level 1 value, this method is explained in the link below).
Try to fix it now.
You may want to read this:
http://108obiee.blogspot.com/search/label/DASHBOARD%20URL
Regards
Goran
http://108obiee.blogspot.com
Edited by: Goran O on 2009.11.29 10:23

Similar Messages

  • Error while creating presentation variable in Dashboard prompts.

    Hi Team
    I have been going through the guidelines and procedures to create a presentation variable to use it in the dashboard prompt ( mentioned in the previous blogs ) .I followed the below link :
    http://oraclebi.blog.com/example-of-presentation-variable-in-obiee/
    I am using the following query :
    ========================================================
    SELECT case when 1=0 then "D2 Market"."M04 Region"
    else 1
    end
    FROM "Sample Sales"
    UNION ALL
    select case when 1=0 then "D2 Market"."M04 Region"
    else 2
    end
    FROM "Sample Sales"
    =========================================================
    I just wanted to create 2 dummy choices i.e 1 and 2 .But while soing so I am getting erros in the case statements :
    =========================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "D2 Market"."M04 Region". (HY000)
    SQL Issued: SELECT case when 1=0 then "D2 Market"."M04 Region" else 1 end FROM "Sample Sales" UNION ALL select case when 1=0 then "D2 Market"."M04 Region" else 2 end FROM "Sample Sales"
    =========================================================.
    Please suggest and let me know if there is any other method to have 2 chioces in drop down i.e 1 and 2 using SQL statements while creating the dashboard prompts.
    Thanks

    Hi Rachit
    You answered my doubt.This one really works . Thanks a lot !
    But i have one more doubt i.e if have created the Presentation variable in the dashboard prompt and I want to use it in a report
    i.e the scenario is If I have created a new column i.e " Revised Salary " in the Presentation Services and want the values to be entered there dynamically upon end users choice. For ex the end user selecrts value of 1 then the report would display an increament of 500 to all the employees in the " Revised Salary " column and if the end user select value of 2 .. the report would display a decrement of 500 in the " Revised salary column".
    I am getting the following error :
    ========================================================================
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 59001] Binary Logical operation is not permitted on VARBINARY, INTEGER operand(s). (HY000)
    SQL Issued: SELECT "D0 Time"."T05 Per Name Year" saw_0, "D2 Market"."M04 Region" saw_1, "D4 Product"."P01 Product" saw_2, "D1 Customer"."C1 Cust Name" saw_3, "F1 Revenue"."1-01 Revenue (Sum All)" saw_4, CASE WHEN 0='1' then "F1 Revenue"."1-01 Revenue (Sum All)" +500 else "F1 Revenue"."1-01 Revenue (Sum All)" - 500 end saw_5 FROM "Sample Sales" ORDER BY saw_0, saw_1, saw_2, saw_3
    ========================================================================
    Please NOTE : The column on which I want to do an increament is : "F1 Revenue"."1-01 Revenue (Sum All)"
    Thanks

  • Presentation variables in dashboard prompts

    Hi ,
    I have a scenario where there are two prompts. When the user selects the value in the first prompt, hits "Apply" button. The prompt value should be passed to another prompt.
    For e.g: In the first prompt, the user will have values: Fiscal or Gregorian. The user hits the apply button. Then the presentation variable should get passed to Month prompt in the same dashboard page. The month prompt will use this value to display data accordingly.
    If it is Fiscal, the month prompt will display fiscal monthly values.
    If it is Gregorian, the month prompt will display gregorian monthly values.
    I tried doing it, But i am not able to get it. Is this possible in OBIEE?
    Thanks,
    Upendra

    Hi,
    Create the year and month prompt as column value prompt if 11g. Then mark the month prompt by selecting the option "Limit Value by" Year.
    Mark if helpful.
    MARM

  • How to create a presentation variable outside the prompt in OBIEE 10.1.3.4?

    I am having a situation as below:
    I have a "Month" and "Year" dashboard Prompt.
    Once the user selects a particular Month and year, that particular month's end date should be defined as a presentation variable. (For example, if the user selects 'September' and 2011 then '30-sep-2011' should be the presentation variable).
    I dont want the Month End Date to be a part of the prompt.
    Please suggest.

    Hi
    if you have access to metalink, there is a patch..released by oracle.
    i had this same issue and solved it by applying the patch.
    instructions are given in that patch release on how to apply that.
    just replace the DAWServer.jar file in DAC/ Folder by taking a backup of exisitng one
    thank you
    kumr

  • "Request variable" in dashboard prompt

    Can I really change the value of a session variable using Set variable "Request variable" option in a dashboard Prompt. If "yes", can someone explain with an example. If "no" is there any other way to change the value of a session variable in specific pages while navigating.

    In the Report, Create a filter fro VERTICAL. In the Filter Creation Click On Add - Variable - Presentation, Now in the variable Expr give your variable name, In the default value give any value for this VERTICAL.
    Now put your prompt and report in dashboard, test it.

  • SQL query for presentation variable in dasboard prompt returns no rows

    Hello,
    I have a query like below.
    SELECT "mysubjectarea"."my lookup table"."Name" FROM mysubjectarea.
    I use this query in an analysis and it gives the intended result.
    But when I use this to populate a presentation variable in a dashboard prompt it returns nothing.
    How can I troubleshoot it?
    Is there anyway I can trace it in a log?
    Do you have any idea as to what might be going wrong?
    I am on 11g .5 version
    Thanks,
    Badal

    OK. So you are saying that the below query doesn't return any records? I thought the returned values are not being set in the pres. variable.
    SELECT "mysubjectarea"."my lookup table"."Name" FROM mysubjectarea.
    In this case, check the backend db table whether this column has any records. IF backedn tables has records, then add this column in the criteria and click results. Check whether you are getting the same set of records. IF not then check whether any cache is there.
    Go to Administration-->manaage sessions--> it will show you the logical sql. there click on the show log. iit wil display you the physical query and also whether this query hits a cache or not.

  • Repository Variables in Dashboard prompt.

    I am still learning how to use variables in Dashboard. I have created one Dynamic Repository Variable. I want to use this variable as Default in Dashboard prompt.
    Please help me resolve this issue.
    Thanks,
    Pooja

    Hello,
    This post get help you.
    http://bischool.wordpress.com/2009/06/17/set-yesterday-or-some-date-value-as-default-in-obiee-dashboard-prompt/
    Regards,
    Luko

  • Setting Presentation Variable with Multiselect Prompt

    I want to know if there is a way to set presentation variables from a multiselect prompt. I want to store all the values that the user has selected from the prompt.
    Mrinalini.

    I have a report in which I use Oracle analytic functions. But I have to show only subset of all records because of analytic functions. In case of ListBox I use a presentation variable in a FILTER(expr1 USING expr2). How may I do this in case of multiselect prompt? It doesn't support presentation values.

  • Can you control format when setting variable from dashboard prompt?

    I'm setting a session variable from a calendar date prompt in a dashboard prompt, and the variable is referenced in a calculation in the business model. I'm initializing the date prompt from another variable which returns format TIMESTAMP 'YYYY-MM-DD 00:00:00', and the initial load of the dashboard is successful. After changing the value of the date prompt, the query fails because the prompt sets the variable to 'mm/dd/yyyy'.
    My question is: Is there any way to control the formatting when setting a variable from a dashboard prompt? I would like to get the timestamp format.
    Thanks,
    Greg

    If You wants time than in dashboard prompt's coloumn formula use cast function as "cast(date as time)" if date than "cast(date_col_name as date)". But I also have that one problem.Firstly tell me, Is it possible that using two dates in using betwwen operator in dashboard. We access server variable. If not working one thing more that u should have filter on date coloumn in report layout.And in action coloumn u select prompted. Than It will must work.
    Thanks
    Haroon

  • Resetting presentation variable set by prompt

    Say I have 2 prompts, State and City, driven by a single go button. The State prompt sets a presentation variable called STATE_VAR and the City column prompt filters its choice list values based on the STATE_VAR and sets its own presentation variable CITY_VAR when the user selects a choice from the list. Both prompts have defaults - the STATE_VAR prompt defaults to a specific state on initial page load and the CITY_VAR defaults to nothing (None option in the prompt dialogue).
    This issue I want to solve is resetting the CITY_VAR presentation variable to nothing (as per the default None option in the prompt dialogue) when the user selects a different state in the State prompt. The sequence I want to achieve is listed below.
    1) On page load STATE_VAR and State prompt choice are set to Michigan and both the CITY_VAR and City prompt are set to nothing (blank option)
    2) User selects Detroit as one of the cities in the City prompt and clicks the GO button.
    3) On page load, the STATE_VAR presentation variable and corresponding State prompt are set to Michigan, but now the CITY_VAR and City prompt are now set to Detroit
    4) User selects a different option in the State prompt, say Nebraska, and clicks on the GO button
    5) On page load, the STATE_VAR presentation variable and corresponding State prompt are now set to Nebraska, however, the default selected option in the City prompt and corresponding CITY_VAR presentation variable are still Detroit though the choice list now contains different values.
    Is there anyway to reset both the CITY_VAR and City prompt to the default nothing (None) selected state, essentially resetting the presentation variable?
    Thanks.

    i am afraid .. you wont be able to achieve this...
    The best thing that you can do is to check the constrain checkbox in the city prompt..
    Thanks
    Ashish

  • Presentation Variable not working in Dashboard Prompt

    Hey Folks
    I Created a BI Publisher report and i embedded the report on my Dashboard and and i am using the parameter as a presentation variable in my Dashboard prompt and it was working fine suddenly i dont know what happened when i try give different values from my dashboard prompt its not taking the values
    PTCLID is the Parameter i am using in BI Publisher and i am referencing PTCLID as my Presentation Variable in Dashboard Prompt(Dropdown Field)
    I know that BI Server and XMLP Server are not communicating properly , I restarted my services couple of times but no luck, Can you help me out how to debug the issue
    Thanks
    Srix

    Hello Everyone
    I changed the parameter and recreated the presentation variable and its still not working, Can anyone tell me how to debug it we actually have a go live with in a week and this report suddenly stopped working
    Thank you

  • Presentation Variable not working in Dashboard Prompt Urgent !!!!

    Hey Folks
    I Created a BI Publisher report and i embedded the report on my Dashboard and and i am using the parameter as a presentation variable in my Dashboard prompt and it was working fine suddenly i dont know what happened when i try give different values from my dashboard prompt its not taking the values
    PTCLID is the Parameter i am using in BI Publisher and i am referencing PTCLID as my Presentation Variable in Dashboard Prompt(Dropdown Field)
    I can run the report with different parameters in BI Publisher but when i try to run from Dashboard prompt its not working
    I know that BI Server and XMLP Server are not communicating properly , I restarted my services couple of times but no luck, Can you help me out how to debug the issue
    Thanks
    Srix

    You mentioned that you are able to run this report from BI publisher using parameters. Do these parameters have a List of Values? What is the 'Parameter Type'?
    You can try the following steps:
    Create a copy of the BI publisher report and set the parameter type to text. Ensure that the parameter identifer (name) is exactly the same as the presentation variable.
    Add this new BI Publisher report object to the dashboard and then test with the dashboard prompt.
    Hope this helps.
    Thanks!

  • How to retain the presentation variable values for Dashboard Prompt

    I've a dashboard prompt with date and two other drop down field, with default value as yesterday's date set for date and All Values set for other two drop down list. Presentation Variables are D1, P1 and P2 respectivilly
    I'm using GO URL from "Report A" and passing presentation variable to navigate to other report (Report B) that works fine. eg:
    '<a href = saw.dll?GO&path=/shared/Reports/ABC/ReportB&Action=Navigate&p0=1&p1=eq&p2="-%20Time"."Next%20Day"&p3=@{d1}>Test</a>'
    From Report B I'm using Dashoard URL to go back to Previous Report like:
    <div class="XUIPromptEntry minibuttonOn">
    Return to Previous Screen</div>
    This also works fine.
    My problem is that, when users selects different values in the Main dashboard prompt for date and other other two drop down and navigates to other report (Report B), and from Report B, when user returns to previous screen (Main Dashboard), Prompts values gets refreshed to original default values.
    Is there any way to retain the values of presentation variable in dashboard Prompt when I return to main dashboard from Report B?
    I'd appreciate your help.
    Thanks

    Change your dashboard url include the column and column value for the date column sample shown below,
    [a href=saw.dll?Dashboard&PortalPath=/shared/sample/_portal&page=pagename&Action=Navigate&col1=Dim.Date&val1=@1>Return to Previous Screen[/a>
    In my second report Date is the first column so I referenced it's value as @1 in the dashboard URL
    note: replace [ with <
    Thanks,
    Vino                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Presentation variable in iframe/narrative view/Go URL

    I am able to see the peresentaion variable declared in Dashboard Prompt in narrative view.
    But when I put in iframe with narrative in Go URL then i am not able to filter the report based on presentation variable Values..." The page throws error
    'saw.aViewsToRefersh.all' is null or not an object.'

    Do you get that error if you remove the presentation
    variable column (@n). Does the a simple iframe work.
    Also, how are you referring the presentation variable
    in the iframe. I hope you are referring via a dummy
    column.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com
    Yes the simple iframe work well in the browser. As I am trying to run report based on the dashboard prompt. I have declared presentation variable in Dashboard prompt and referring the presentation variable in the iframe via a dummy column. when i click on 'Go' of dashboard prompt after selecting the value in dropdown list, I see the error on left bottom most of Internet Explorer Showing " Done" is null or not any object. also i see javascript:void(null). I assume that the variable value is not getting passed to parameters i have given in Go URL

  • Issue with presentation variables, dashboard prompt and filter

    Dear Guru's,
    I have a question about constraining a request with presentation variable set by a dashboard prompt. I have a dashboard prompt, that stores its value in a presentation variable . The prompt is about region. When the dashboard opens, the default of the prompt is all choices and it needs to show my reports with "All Choices". I've created the following filter on my two reports on the dashboard:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    One report is just the column "Dim Student"."Region" (to see if it works) and with this report the above filter works just fine. When nothing is prompted it shows "All Choices" when a choice is made the report responds accordingly.
    BUT
    The second report on my dash with the same region column, but extended with some time dimension columns and a measure gives an error which I'm not able to solve.
    +State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 14023] None of the fact sources for ToDate(# Feitelijke Instroom:[DAggr(Feit Instroom en Uitstroom Opleidingen.# Feitelijke Instroom by [ Dim Tijd.Maand Omschrijving, Dim Tijd.Maand Nummer, Dim Tijd.Jaar, Dim Kwalificatie.Kwalificatie Niveau, Dim Leerling.RCBREGIO Regio] )], [Level JAAR]) are compatible with the detail filter [Dim Tijd.Maand Nummer = 3, Dim Tijd.Jaar = 2010].+
    +(HY000)SQL Issued: SELECT "Dim Tijd".Jaar saw_0, "Dim Tijd"."Maand Nummer" saw_1, "Dim Tijd"."Maand Omschrijving" saw_2, "Dim Kwalificatie"."Kwalificatie Niveau" saw_3, "Dim Leerling"."RCBREGIO Regio" saw_4, "Feit Instroom en Uitstroom Opleidingen"."# Feitelijke Instroom Cumulatief" saw_5, REPORT_SUM(saw_5 BY saw_0, saw_1, saw_2) FROM repos_x WHERE ("Dim Tijd".Jaar = 2010) AND ("Dim Tijd"."Maand Nummer" = 3) AND (("Dim Leerling"."RCBREGIO Regio" = 'Noord-Oost') OR ('Noord-Oost' IS NULL)) ORDER BY saw_0, saw_1, saw_2, saw_3, saw_4+
    While the exact same report but without the "or '@{variables.GILLES}' IS NULL" doesn't throw any errors but doesn't show the "all choices" by default.
    The ultimate goal to achieve is to build a dashboard with several reports from several subject areas with one single prompt that opens default with "all choices" and constrains the reports accordingly.
    Any help is highly appreciated.
    Kind Regards,
    Gilles

    Phani,
    I know "All Choices" is a special value and that it doesn't represent NULL. My filter construction seems to work fine.
    My filter condition:
    "Dim Student"."Region" = '@{variables.GILLES}'
    or '@{variables.GILLES}' IS NULL
    When it's set by the prompt it filters the request accordingly (first condition evaluates to true), when it's not set the second condition evaluates to true and shows all the results (or it's not filtered).
    The problem is that it doesn't work when time dimensions are combined with this filter. Then it throws the error mentioned in the first post.
    By the way: your suggested solution doesn't work.

Maybe you are looking for