"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.

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 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

  • 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

  • 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

  • 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

  • Request variable in Answers prompt

    I am on OBIEE 11.1.1.5 and have created a session variable which is set to 'Enable any user to set the value'. Then default for this varaible is set to CURRENT_DATE. I have created a logical column to calculate Length of Service based on this variable like
    cast(Floor( (TIMESTAMPDIFF( SQL_TSI_MONTH , "Core"."Fact - Active - Period of Service"."Hire Date" ,VALUEOF(NQ.SESSION."Test")))/12) as char)||' year(s) '||cast(Mod((TIMESTAMPDIFF( SQL_TSI_MONTH , "Core"."Fact - Active - Period of Service"."Hire Date" ,VALUEOF(NQ.SESSION."Test"))),12) as char)||' month(s)'
    Now I create a answers request and put this logical column on it. What should be the prompt so that the Length of Service gets calculated based on the iput provided by the user?

    I am following http://everythingoracle.com/obieerv.htm to move forward.
    I created a variable prompt abc with date as data type and then in Advanced tab under Advanced SQL Cluses in Prefix I typed: SET VARIABLE Test='{abc}';
    This just puts '{abc}' in the formula. And if I try SET VARIABLE Test={abc}; then it throws syntax error i Advanced tab.
    What am I doing wrong?
    Edited by: user12301184 on Aug 26, 2011 6:38 AM

  • Using variables in Dashboards and Requests

    Hi Freinz,
    I am trying to use a dashboard prompt and based on the selection in the prompts the data shud be populated.
    I used the option request variable in Dashboard prompt and then created the static repository variables in administration.
    I have created variable 'vert' and in the requests for the column 'VERTICAL' i am setting the variable as 'vert'.
    This is the same value i have given in the dashboard prompt set variable-->request variable.
    Guyz pls help me...
    Pls let me knw the steps to be followed.
    How shud i pass teh values from the dashboard prompt to the requests??/
    Thanks,
    Veena

    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.

  • Direct Database Request with Dashboard Prompt LOV Source

    I have complex Direct Database Request query having Dashboard Prompt. In Dashboard prompt I want to have LOV. But to create the DPrompt having LOV, I must have the table/column in Subject Area. How I can have table in RPD not connected or joined with any table in RPD?
    The idea is to do the reporting based on direct query with Prompt/LOV but do not want to include the prompt source table with other my main logical model which is used for other purpose.

    Hi Kishore
    Thanks for the reply but it is little less clear because I already have working Dashboard level prompt where
    1. Instead of LOV I type the value, use the Presentation Variable as Set Variable on Dashboard Prompt, say pDepartment
    2. Created direct database rqeuest query having where condition .. WHERE Department= '@{pDepartment}'
    And the above Dashboard works great. Only problem is that I want to have LOV for Department for which I need to have the respective table/column in RPD
    I liked your idea about BI publisher but how do you really deploy the BI Publisher?
    Thanks
    OBIEEFAN

  • 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                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • How to create 'NOT in between' dashboard prompt on a column

    Hello Guys,
    I have a simple request where the dashboard prompt has to send in data for 'NOT in between'. OBIEE does not give this option by default..
    Any one who tried this .. can you please help with some pointers on this.
    Column1 less than 100 or greater than 2000 --> This condition has to be sent from the dashboard. So my option in SQL is to use NOT in between 100 and 2000.
    Thanks in advance
    Kris

    Hi kris,
    in the prompts you will have not between condition check out....if not write a SQL like this for the prompt
    SELECT FROM table_name WHERE column_name not between 100 and 2000*
    (OR)
    SELECT FROM table_name WHERE column_name >= 100 AND column_name<= 2000*
    you want values in that range then the SQL should be
    SELECT FROM table_name WHERE column_name between 100 and 2000*
    check this article
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables
    UPDATED POST
    in place of constant values play with your session variables or Presentation variables by writing this above SQL according to your requirment and you would get your solution.Give a try then comment is it working or not.
    Hope answers your question.
    Cheers,
    KK
    Edited by: Kranthi on Jan 24, 2011 10:43 PM

  • Getting the dashboard prompt value

    Hello,
    I there a way on how can i get the dashboard prompt value when using other operators beside equal/is in. It seems that you can only set a presentation variable using the equal/is in operator.
    Also how can i get prompt value when using multi-select control?

    Hi. Yes, presentation variable is only for is equal to/is in.
    But no need to use other operators ( is less than or equal to, etc) if you want to write data in presentation variable, use equal/is in if you want to show data that is for example less and set presentation variable and in the report instead if IS PROMPTED write advanced SQL filter like:
    TABLE.COLUMN <= '@{pv}'
    You asked also how can to get prompt value when using multi-select control?
    No way to do that. But what do you need that information for. Lets say that you are able to do that and you put multiple values from multi-select into variable, where do you need to present that data? In the report? No need for that because the report is already filtered by it.
    Also check this one:
    Using multiple values row wise session variables in dashboard prompts and requests
    http://108obiee.blogspot.com/2009/10/using-multiple-values-row-wise-session.html
    Regards
    Goran
    http://108obiee.blogspot.com

  • Dashboard Prompt Bins NOT WORKING

    Hi All,
    So, I got a set of Dashboard Prompts which include Year, Security Type Description, etc. etc. Apparently, only the Year dashboard
    prompt works. The Security Type Description does NOT work because I've added BINS to group several data items into categories.
    For one, the bins don't even show up in the drop-down menu even though when I go back to the Edit Column Formula Bin tab for that
    dashboard prompt I can plainly see that it is there.
    How come?
    Let me give you a bit of a backstory to this. Before this iteration, I was able to have the bins show up but that was only because I had to
    BIN both the dashboard prompts as well as BIN the underlying Request. However, the downside is that NONE of the dashboard works even
    though the BINS showed up correctly. In fact, even the Year Dashboard prompt did nothing. Someone told me to take out the
    bins from both the underlying Request and the dashboard prompts then ADD it at the end and it should work. Well, apparently, it
    still does not work except for the Year(which didn't have bins to start with). So, there seems to be a DISCONNECT
    between dashboard prompts and the underlying request...
    Odd..
    Thnx!
    Edited by: 862752 on May 31, 2011 4:46 PM
    Edited by: 862752 on May 31, 2011 4:50 PM

    Thank you for you help Christian.
    Here are my answers per your questions:
    +"- are your source and target request based on on the same subject area?"+
    My answer: yes. In the repository I match two fact tables to same dimension table. I did the prompt filter on one column from this dimension table, and in each table (which are in a different pages, in a same dashboard) I choose this column to be prompted.
    +"- are either of the two union requests?"+
    My answer: I didn't understand this question.
    +"- can you verify whether is is this issue: https://support.oracle.com/CSP/main/article?cmd=show&type=NOT&id=565505.1 ?"+
    My answer: as much that I can understand, It is not the exact problem that I have. I am not managed to try navigate (from table report that have more then 11 column) but doing just prompt object. and navigate from a link that I created in this dashboard page.
    +"- is the column you want prompted part of the criteria block of the target request? (if not, make it so)"+
    My answer: What do you mean by saying "criteria block"?
    +"- it the column visible? (if not, make it so)"+
    My Answer: This column is not visible. follow you question - I managed to turn it as visible - but it is still not work..
    +"- any chance you set the column filter as "protected"?"+
    My answer: nop.
    Do you have any idea what is the problem and what am I doing wrong?
    Thank you again,
    Gila

Maybe you are looking for