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.

Similar Messages

  • Setting Presentation Variable with a Calendar Control

    I have a situation where I need to create a dashboard prompt on a Date field that allows the user to select a start and end date. Part of this requirement also requires that I capture those two values in two presentation variables - but I can't seem to figure out how to set a presentation variable in a dashboard prompt while still using the Calendar control for the date selection.
    I can't use a drop down list or anything else besides the Calendar pop up - Does anyone know how to go about setting a presentation variable while still allowing the end user to select dates via the Calendar control pop up?

    Hi
    in dashboard prompt, select control as calendar control but not drop down
    And if you want in between operation with presentation variables.. go through the following link...
    http://oraclebizint.wordpress.com/2008/02/26/oracle-bi-ee-101332-between-prompts-for-date-columns-using-presentation-variables/
    Regards
    Kishore Guggilla

  • Unable to set presentation variable to prompt default.

    i am tying to apply prompt default value as some presentation variable.
    as i want to set depending on the value selected by Same prompt.please help me.
    or else help me to write sql statement with presentation variable(of other prompt) to set default.
    Edited by: user12078402 on Oct 28, 2009 5:21 PM

    Okay, I just tried something that works, but it's a workaround that may or may not work for you depending on the number of values in the column.
    Anyway, try this:
    1) Create your first prompt and save it to a presentation variable (PV), say prompt1
    2) Use the same column and create another dashboard prompt. In this one however, change the "Show" to "SQL Results."
    3) Now after the SQL in the window, add WHERE tablename.columnname IN ('@{prompt1}', 'value1','value2', etc...)
    Here is the drawback, you have to list the values explicitly (unless someone knows a better way), but this will default the second prompt to the first prompt's selected value while allowing the user the choices of the rest of the column.
    Not the prettiest solution, but it does work...

  • Using presentation variable in multiselect control

    Hi All,
    I have a requirement.
    I'm showing a dashboard page which contains a Direct SQL request and a prompt. The prompt needs to be a multiselect control.
    The SQL request is as follows:
    Select user_name, user_id from table_name where user_id = @{presentation_variable}.
    The presentation variable will be declared in the prompts, which I can use it in the sql request.
    But when we select multiselect control, it doesn't show the box where we can declare a presentation variable.
    It allows us to declare presentation variable when we select drop dwon control, in which only one value is selected.
    Can anyone guide me how I can use multiselect with Direct SQL request, so multiple values can be passed to filter the results.
    Thanks.

    hi rgksugan,
    Presentation variable will not hold more than one value,so we can't set presentation variable(set variable) to multi select
    how I can use multiselect with Direct SQL request, you can't do this with multi select
    Thanks,
    saichand.v

  • (Bash) How to set a variable with text from a file? [SOLVED]

    I'm having a little problem.
    I have textfile with a single line of text. What I want to do is set a variable with that line of text. How do I go about doing that?
    A simple var="text" wont work in this case, since the text in the file changes with another script of mine.
    Thanks in advance.
    Last edited by Aziere (2007-03-27 09:07:03)

    if you have a file with more than one line but you only want the first line you could use 'head'
    VAR=`head -n 1 file`
    Last edited by SiD (2007-03-27 05:58:33)

  • I want to set a variable with default value and can be changed by the user

    hi,
    i want to set a variable with default value and can be changed by the user, so i new a variable with setting : customer exit, single value, optional, ready for input.
    in my customer exit code, i set a default value, eg. 20070530
    when the variable screen popup, it display the default value 20070530, i changed it to 20070529, but it doesn't work , it still display the data in 20070530, how can i solve this problem? 
    your help is appreciated.

    Liu,
       As mentioned by Anil, you need to restrict your customerr Exit code to I_STEP = 1.
    or.
       <u>Open your Variable in change mode, in the Last Page os the Variable Maintenance you can provide default value. Note: you are doing same thing in Customer Exit. In your case no need of Customer Exit.</u>
    Nagesh Ganisetti.
    Assign points if it helps.

  • Analysis prompt vs. dashboard prompt for setting presentation variable

    I have a requirement to include a prompt on the analysis (not dashboard) to select a year. This sets a variable when is then used in Report A. I then use the variable for a column filter, which passes 3 parameters to Report B.
    If doing this using a dashboard prompt, everything works as expected. The variable and other row items are used in Report A and passed to the Report B via a Navigate to BI Content Action Link. When using the analysis prompt to set the presentation variable Report A works but then I get this error when navigating to Report B.
    An invalid object was accessed during evaluation.
      Error Details 
    Error Codes: QBB4RZQS:SDKE4UTF

    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.

  • 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

  • How to pass presentation variable with enclosing single quotes

    HI All,
    As all of you know in 11g, Presentation variable can hold more than one value.So we can pass multiple values to the report through presentation variable.
    If we select x,y,z values from prompt drop down,then those values will be stored like x,y,z in the presentation variable.
    but I would like to store these values with enclosing single quotes like 'x,y,z'
    The reason is I need to pass this variable value as input to BI Publisher sql dataset query where clause.
    Please share your Ideas.
    Thanks,
    Aravind

    Aravind,
    Check this
    Predefined Presentation Variables in OBIEE 11G | Praveen&amp;#039;s Blog

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

  • Issue on presentation variable with calendar control

    Hi Gurus,
    I have a date control prompt with a presentation variable.
    I have a filter condition on Date field(Start Day).
    Filter Condition:
    Start Day is equal to / is in timestampadd(sql_tsi_day,-1,evaluate('to_date(%1,%2)' as date,'@{sdate}{01/30/2009}','MM/DD/YYYY'))
    Here 'sdate' is my presentation variable.
    If I keep the date control as drop down or edit box, I am getting the results(basically I am trying to get one day ago counts). When I select a date from calendar control and hit the GO button I am getting the below error.
    [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 12801, message: ORA-12801: error signaled in parallel query server P147 ORA-01843: not a valid month at OCI call OCIStmtExecute
    Can you pls. help me on this?
    Thanks,
    Ramesh

    Ramesh,
    Did you already load the patch (8599681)?
    http://obiee101.blogspot.com/2010/01/obiee-patches-101341-part-2.html
    regards
    John
    http://obiee101.blogspot.com/

  • 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

  • Setting VarChar Variable with String Parameter in Crystal Report Add Command

    Setting a VarChar Variable with a String Parameter in a Crystal Report 2008 SP6.3 Add Command is causing an error with a SQL State of 42000.  The Error Code depends on which value I select for the parameter.  I created the @DateOpt string parameter in the Modify Command window, not in the report. If I comment out line 14 of the SQL the error does not occur.
    I have attached the SQL Code and screen shots of the errors.   Please tell me what I am doing wrong.

    Since your parameter is of type STRING, you need to enclose references to it within the Command inside single quotes.
    For example, instead of
    SET @BeginDate ={?BeginDate}
    use
    SET @BeginDate ='{?BeginDate}'
    hth,
    - ido

  • 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

Maybe you are looking for