Value of Presentation variable

Experts,
What is the Value of Presentation variable if I dont type in any value in the edit box and click Go.
My requirement is if the user does not type in any value in Edit box, the request should show NO Results.
How can I achieve this.
thx,
parag

Parag,
To get No results when the prompt (edit box) is empty or you delete value from it and hit GO you need to use presentation variable in the filter insted of IS PROMPTED, for example:
My report:
PRODUCTS.PROD_CATEGORY
SALES.QUANTITY_SOLD
Filter (advanced SQL filter): PRODUCTS.PROD_CATEGORY='@{pv_cat}'
My dashboard prompt:
PRODUCTS.PROD_CATEGORY - edit box - wtihout default value - set presentation variable pv_cat.
Now you'll get No results when the prompt (edit box) is empty or you remove value from it.
Regards
Goran
http://108obiee.blogspot.com

Similar Messages

  • How to send different value of presentation variable in GO URL??

    Hi there,
    I'm using GO URL to send presentation Variable (d_pv) to filter other report on 'day' column.....
    '(a href = http://server/analytics/saw.dll?GO&path=/shared/BI%20Reports/Ki1/KPIs%20Detail%20Priority%203%20Shipped&Action=Navigate&p0=1&p1=eq&p2="Time".Day&p3=@{d_pv})SHIPPED(/a)'
    This is working fine. But my goal is to filter the other report using previous day of the value of d_pv (eg. if d_pv value is '2010-04-27' , I need to filter other report using '2010-04-26')
    I couldn't find to pass one day back value of presentation variable using go url.
    Please Help..
    Edited by: bob123 on Apr 28, 2010 10:15 AM

    I'd say use TIMESTAMPADD(SQL_TSI_DAY,....,1) and use pass your pres variable to this column.
    so when you pass 28/04/2010 to the target report day+1 column, it will show 27/04/2010 data.

  • Issue with Dashboard Prompt passing value to Presentation Variable

    I have 2 tabular reports that grab 2 variables respectively: @Month and @Year.
    The reports work fine.
    My issues is that to compute the most recent month & year, so I can pass the values to the 2 variables mentioned above, I have a dashboard prompt on the same page as the 2 reports. In the dashboard prompts (Edit Box types), I have SQL in the "Default" that computes the most recent month & year. This logic also works perfectly when you preview the results of the prompt.
    My issue is that when I land on the page, it seems that the month & year prompts are not computing. I have an old value of "Dec" "2009" instead of "May" "2010".
    It seems the Default SQL logic is NOT running on its own? As an aside, we do our development in a test environment and the catalog is promoted to production nightly. The "Dec" and "2009" I see is the correct value for the test environment, so it looks as if the defaul values are just being migrated with the catalog, but then the SQL to compute the latest values of the 2 propmts are never executing when the user lands on the page? Thus everyone sees Dec 2009 data instead of May 2010...Help!

    Hi,
    dgerena wrote:
    My issues is that to compute the most recent month & year, so I can pass the values to the 2 variables mentioned above, I have a dashboard prompt on the same page as the 2 reports. In the dashboard prompts (Edit Box types), I have SQL in the "Default" that computes the most recent month & year. This logic also works perfectly when you preview the results of the prompt.You are creating the second prompt (edit box) to make the first prompt values, You can use the same sql in the report default to SQL in the first prompt itself.
    If I am wrong please clarify.
    Thanks,
    Vino

  • Multiple values in Presentation Variable

    Hi All,
    I have a requirement like this. I have a report that report is Direct Database request. I want to pass the multiple values from the prompt in to the Direct database request report.
    The single values is already passed in the direct database report with this syntax (@{PresentationVariable Name}). But when i tried to select multiple values from the prompt it doesn't work.
    So can someone have any idea or any workaround how it can be achievable. My version of OBIEE is 11g.
    Regards
    Ashish

    use something like below in DDB req
    Column in  '@{PresentationVariable Name}'
    just save it and test with prompt value using db page.

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • Unable to pass the values to stored proc using presentation variable in OBI

    Hi All,
    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There is an OBIEE requirement whereby two prompts need to be defined.
    1.     Textbox prompt
    2.     Drop-down prompt
    The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
    Until this step, the report works just fine.
    Now, the value in both textbox and drop-down needs to be passed to stored proc.
    While trying to pass the values by using the presentation variable, the following error comes-up saying
    Session variable has no value definition.
    Note:Although the corresponding session variable has been set to default value,still the error appears.
    Please advise.
    Regards,
    Prasad

    "Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
    Set default value for presentation variable that may work

  • In OBIEE 11g, how can you set a presentation variable value from javascript ?

    I want to set up presentation variable from a javascript variable. Does anyone knows the workaround for this ?

    SriniVEERAVALLI,
    Thanks for your suggestions. I want to make a custom prompt that is only my requirement. From JS I have made a custom slider prompt now I want to use this slider prompt to pass selected value in presentation variable. Since, we have slider prompt only for numbers, I have to use it for other values.
    I just want to make my post looks simple and focus on the specific problem.
    Anyways, thanks a lot for taking time to reply. Appreciate your help.

  • How to pass Presentation Variable Value from Main Report to Detail Report

    Hello,
    I've 2 reports that is attached to each other. In my main report i've several report prompts and i am using i"s prompted" on my detail report to attach them.
    But 2 of my report prompts are presentation variables(Names : FIRST, SECOND). Both are in date format. I've a filter in my main report like;
    "ASSIGNMENTS_F"."EFFECTIVE_START_DATE" BETWEEN @{FIRST} AND {SECOND}
    It works fine when i run the main report. But when i click on the numbers, i see that i can not filter my detail report with the chosen values for 2 presentation variables. It just shows all the dates.
    I've tried adding both presentation variables in both reports as columns and adding 'is prompted' filter to them. But did not work either.
    I just cant pass the written values for presentation variable prompts to detail report..
    Please help :)

    Hi,
    What you can try is refer the filte condition in the main report to the detailed report with the option--> Filter based on another request.
    Or you try creating another intermediate report which will refer the main report filters and pass the filters to the detailed report.
    Hope this helps.
    Regards
    MuRam

  • 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

    hello,
    I have a presentation variable named PVAR populated by a dashboard prompt...
    & I have a 2 conditional formatting based on this PVAR :
    text should be green if the PVAR > XX %
    text should be red if PVAR < -XX %
    ***where XX is an input from a dashboard prompt
    Is there a way such that the user will just input XX and the conditional formatting will understand it as
    one positive XX and one negative XX
    *I tried putting a conditional format using (PVAR)...but the system still reads it as a positive number
    same when using - PVAR
    Thanks,
    Janne

    hi Janne,
    I faced the same problem,their is no option is to pass -ve values to presentation variables
    What ever the value that u used in edit box/PVAR it will pass,to conditional format based on that report ll generate
    Like what you are you doing now!!
    thanks,
    -Saichand.V

  • Presentation Variable manipulation

    Is it possible to manipulate the presentation variable. I dont need the exact value selected by the user to be set as the presentation variable value, instead I need a little modified value.Is it possible.

    Hi,
    You can apply SUBSTRING function after you fetch into presentation variable also.
    If you want to use it in the report give it in fx.
    CASE WHEN 1=0 THEN "D2 Market"."M01 Market" ELSE SUBSTRING('@{hello}{hellosir}' FROM 2 FOR 3) END
    If you want to do this operation before saving value into presentation variable then i dont think its possible to do,because if you apply SUBSTRING function on column fx in the prompt itself the drop down values in the prompt for selection will change according to the substring function you gave in the column fx.even though if its ok for you then it will work fine aplying function in column fx of prompt.
    You didnt close your previous threads...close the if answered assigning points
    Is between Calendar prompt
    Changing the default No results text
    Regards,
    Srikanth

  • How to set MULTIPLE repository variables using presentation variables

    Hi,
    I need to pass multiple values from presentation variable to repository.
    A brief about report design :
    I have two repository variables - from_dt and to_dt which are defaulted to some values from a database table and are editable by the user.
    I display these default date values on the dashboard. Plus there are two dashboard date prompts allowing user to enter a date range different from what is displayed by the from_dt and to_dt. The dates entered by user are assigned to presentation variables pv_from_dt and pv_to_dt.
    If user specifies a different date range then these date values are to be passed to a stored procedure which is called from the Connection Pool --> Connection Script Tab --> Execute before query. This procedure will do some calculations and populate a global temporary table before running the report.
    Problem :
    Now in the presentation server, in the Advanced tab, in the Prefix section, when i try to write something like this:
    SET VARIABLE from_dt = '@{pv_from_dt}';
    SET VARIABLE to_dt = '@{pv_to_dt}';
    I get the foll error :-
    Error Codes: YQCO4T56:OPR4ONWY:U9IM8TAC:OI2DL65P
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <SET>: Syntax error [nQSError: 26012] . (HY000)
    I tried all possible permutations and combinations
    SET VARIABLE from_dt = '@{pv_from_dt}',SET VARIABLE to_dt = '@{pv_to_dt}'; --- gave same error
    SET VARIABLE from_dt = '@{pv_from_dt}' SET VARIABLE to_dt = '@{pv_to_dt}'; -- gave same error
    How do we assign values to multiple reporsitory variables... ???
    Thanks
    Nusrat

    Hi,
    I wrongly referred to the variables as "repository" variables. Both variables are Session variables. For testing i added a column field in the report with source as the session variable - VALUEOF(NQ_SESSION.from_dt). In the Prefix section i assigned a literal value - SET VARIABLE from_dt='01-JAN-2012';
    When report is run, the literal value gets displayed.
    The idea to update a session variable, from dashboard using presentation variable, i got from the following URL.
    Go to http://oraclebizint.wordpress.com/category/obi-ee-plus/page/11/
    and see the section "Oracle BI EE 10.1.3.3/2 – Updating Session Variables from Dashboards using Presentation Variables"
    Thanks
    Nusrat
    Edited by: user10309945 on Jan 16, 2011 9:30 PM
    Edited by: user10309945 on Jan 16, 2011 9:59 PM

  • Re:presentation variable

    hi,
    i am using below case function to dynamically change the filter depending on other column in the sql filter.Both pv1 and pv2 are presentation variables having multiple values in it.
    CASE when "Region"='USA' THEN
    customer in (@{pv1})
    ELSE
    customer in (@{pv2})
    END
    Values are being populated in the presentation variables.But i get error saying "syntax error near <in>".Is there any way that i can do this without using "in" and "=" .how can i say that customer values should be equal to values in presentation variables in sql filter.
    thanks

    872296 wrote:
    hi,
    i am using below case function to dynamically change the filter depending on other column in the sql filter.Both pv1 and pv2 are presentation variables having multiple values in it.
    CASE when "Region"='USA' THEN
    customer in (@{pv1})
    ELSE
    customer in (@{pv2})
    END
    Values are being populated in the presentation variables.But i get error saying "syntax error near <in>".Is there any way that i can do this without using "in" and "=" .how can i say that customer values should be equal to values in presentation variables in sql filter.
    thanksBased on your CASE statement that you say you are using for a filter, I am confused. You say you want one set of customers to filter your report when Region = 'USA' and another set of customers for all other regions. Is Region another filter selection? It would have to be unless I'm missing something. So why don't you design your report like this?
    1) Create two reports with the same columns.
    2) On one report, hard-code a filter on Region = 'USA' and on the other report, hard-code a filter on Region <> 'USA'
    3) Put a column prompt, multi-select on the customer column.
    4) On the Dashboard, put 2 links, one called "USA Customers" and the other "All other Customers."
    5) Make the first link go to the "USA" report and the other link go to the "Other than USA" Report.
    Here are the advantages: 1) Less real estate is taken up on your dashboard. 2) One prompt to select from, not 2. 3) Simple desgin of reports; therefore, simple maintenance.

  • Storing the values of multi-select on a presentation variable

    I've been asked to present the values selected by a user on a multi-select dashboard prompt as the title for the report. But when you select this option at the time you are creating the prompt, the option to store the values in a presentation variable dissapears, seems that you can only store the value if it comes from a dropdown list ? If anybody knows of a way to accomplish this I would appreciate very much if you can share it.
    Thanks,
    Cuauhtemoc M.

    Hi,
    does the description here help?
    http://www.rittmanmead.com/2009/11/06/oracle-bi-ee-10-1-3-4-1-multi-select-prompts-string-aggregation/
    Regards
    Andy

  • OBIEE 11g Prompt's default value doesn't work with a presentation variable

    Hi, I'm using OBIEE 11g and I have two dashboard prompts (Product Name and Product Number). Theses prompts are hierarquical, so the values that are displayed in the Product Number prompt have dependency with the values chosen on the Product Name prompt. This I was able to do, but now I want to put a default value on the Product Number prompt. The steps are:
    1 - The user chooses the value for the Product Name Prompt and by doing that the Product Number prompt is automatically filled with the correspondent value.
    But unfortunatelly this is not working, after choosing the value for the Product Name the default value for Product Number is not displayed (when you open the prompt the values displayed are correct and already filtered considering the Product Name but the prompt is not automatically filled with the default value).
    What I did is:
    On the Product Name Prompt I've created a Presentation Variable called PROD.
    On the Product Number Prompt I've selected:
    1 - For the "Choice List Values" field I've checked the option "Limit Values by All Prompts"
    2 - For the "Default Selection" field I've chosen the SQL Results option and enter the following SQL:
    SELECT "Products"."Product Number" FROM "Sample Sales Lite"."Products" WHERE "Products"."Product"='@{variables.PROD}
    What am I doing wrong?
    Thank you,
    Carla

    Sorry I was wrong in my previous thread.
    Actually your approach is not correct, Product Number choose constraint that will show as per the selection of Product Name.
    Coming to default value for Product Number you are going for sql override that is okay but not work with variable, instead of setting default values for product number set that to product name.
    if not you need to go for 2 different prompts
    Prompt 1 Product Name hit GO
    Prompt 2 will work based on as you defined earlier with variables
    Hope this helps

Maybe you are looking for

  • Can't get rollover images to work as links [was: I have a question if someone could answer?]

    I have fixed my page so I can preview it and everything is working fine but now I cant get my rollover images to work as links.  When I go to put in the link like normal the rollover behavior stops working and it is just the original image.  Any way

  • How do you use two scripts for a button?

    Hi all! I'm referring to my earlier question posted in this topic: Object not found with myContext.getParamIdForComponent In short: when I had the attribute 'jsObjectNeeded="true"'  on a button and that was for a script that would start a function va

  • Playback problems every few minutes (with synced media)

    Every few minutes during playback of synced content there are pauses that last about a second or two. This happens with both video and music. Maybe a hard disk failure?

  • Truetype, postscript, opentype problems

    We have several macs that we use for publications. Since upgrading from system 9, where all fonts were in one folder and we could limit fonts to postscript (which our offset printers prefer), we have all sorts of font problems. When we take a quark f

  • Adobe plugin crashing.

    when starting starting up firefox my adobe flash player straightaway crashes?,this problem only started today it was working fine before.