Need documents on presentation variable...

Hi Everyone,
Am struggling on concepts of presentation variable, so i really need some basic documents or website links on presentation variables to learn with examples will be really thankful.
Regards
s

Hi ,
U can see the below links :
http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
It would be easier to help you , if you state your requirement on using presentation varible / what u want to achieve with it ?
Thanks

Similar Messages

  • 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

  • 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

  • Displaying a presentation variable in a certain format

    Hi Experts
    I have got presentation variable called WeekBetween, which is set by a slider (that is a dashboard prompt)
    When output the value of this variable (in a textbox @{WeekBetween}) it says *'1,53'*
    While the values are right, i would want this value to be formatted in the following way
    *1- 53*
    Please can someone help or suggest an accurate answer
    Kind Regards
    Hiten

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    &#60;div id=custDiv&#62;@{WeekBetween}{Default Value}&#60;/div&#62;
    &#60;script&#62;
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    &#60;/script&#62;
    Let me know if this works for you.

  • Displaying a presentation variable in a title view

    Hello,
    I've created a title view with the title:
    Category Sales Last 12 Months for @{CountryRegion}
    I also have a dashboard prompt that sets the presentation variable. However, the first time you run the dashboard page the title displays:
    Category Sales Last 12 Months for @{CountryRegion}
    instead of:
    Category Sales Last 12 Months for
    yet when the prompt is set within the dashboard to a value (e.g. Europe), the title correctly shows:
    Category Sales Last 12 Months for Europe
    I thought the title was supposed to not display the presentation variable definition at all if it is not set.
    Please can someone provide some pointers on how to get the title to correctly show the value of the presentation variable in the title whether the value is set or not.
    Cheers,
    John

    You can use the Replace function mentioned above only in column formula. If you do not want to use column formula to display this value, then you can opt for Javascript replace function. To implement it, you need to replace your presentation variable in text object with below code and ensure to check Contains HTML markup checbox.
    &#60;div id=custDiv&#62;@{WeekBetween}{Default Value}&#60;/div&#62;
    &#60;script&#62;
    var i = document.getElementById('custDiv').innerHTML;
    document.getElementById('custDiv').innerHTML= i.replace(","," - ");
    &#60;/script&#62;
    Let me know if this works for you.

  • 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

  • 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

  • To use two presentation variables based on the period selection in OBIEE

    Dear All,
    I have period prompt in my report, based on the period prompt selection in my report I need to get the start and end dates of the period and apply in the report filter.
    For e.g. Period Name selected in the prompt is "2010 - Q1" (For this Period, Period Start Date = 01/01/2010 and Period End Date is 30/03/2010, which is not going to be displayed in the prompts).
    How can I get the start and end dates of the period into my report filter. I tried using the presentation variable for the period name, but unable to resolve the requirement.
    Your help is highly appreciated.
    Best Regards,
    Rajesh

    Hi Rajesh,
    Create a report A which will give you the period start date and end date and filter it using the period prompt.
    Then filter the main report using the report A start date and end date, using Filter -> Advanced ->Filter based on results of another request .
    Add the report A in separate section on the dashboard along with main report and hide report A section.
    Thanks,
    Vino

  • How to use a presentation variable in filter conditions

    Hi,
    I have set a presentation variable "day" on my dashboard prompt containing a date column. I now need to use this presentation variable in the filter clause to restrict the dates between "day" and sysdate.
    So i apply the following SQL filter:
    where day between '{@variables.day}' and current_date
    But I end up in getting the following error:
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 17001] Oracle Error code: 1861, message: ORA-01861: literal does not match format string at OCI call OCIStmtExecute. [nQSError: 17011] SQL statement execution failed. (HY000)
    I even tried casting the presentation variable to date, but to no avail. Can someone let me know how to specify the date format for the presentation variable.

    If you're a member of ODTUG (or even if not, you can sign up for an associate membership for free) you can download Glenn's presentation from 2009 Kaliedoscope "Little Used Features of Essbase (Like Data Mining and Triggers)" -- there is a section in that presentation on substitution variables -- he does a really good job in showing how this works.
    Go to: www.odtug.com, then Tech Resources, then Essbase/Hyperion, and search for Schwartzberg. Currently it's the ninth presentation on the list -- I think this changes based on popularity of downloads.
    Regards,
    Cameron Lackpour

  • Filtering with presentation variable in my report

    Hi experts,
    I'm using Essbase with Obiee 11g.
    I have entity dimension like this:
    Gen1, Entity
    Gen2, Entity
    Gen3, Entity...
    Each Gen is a hierarchy.
    I have a prompt in my dashboard that is a number: 1, 2, 3... with presentation variable = num
    When prompt was number 3 I need to filter with Gen2, Entity.. if is number 2 with gen1, entity.. Always -1
    In my report I can general filter like this: Gen@{num}, Entity and I see report OK, My requeriment is @{num}*-1* like: Gen@{num}, Entity but I have an error...
    Can I do this??
    Thanks!!!

    You need to get the number using substring, substract it and then concat to the string "Entity"."Gen
    There is another way for the same, Based on the value from prompt can validate the column to show in the report.
    Try this scenario:
    I've a prompt Time.Week
    in the report I've picked two columns,
    Column1: Time.Week--> set to isprompt
    Column2: with exp
    CASE WHEN Time.Week = '2012 Week01' THEN Time."Month Name" ELSE Time."Month" END
    I've used existing columns to mimic your scenario
    Edited by: svee on Jul 2, 2012 9:52 AM

  • 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

  • Use presentation variable in date filter

    Hi,
    I have a Date presentation variable pvEffDt whose value is set in a dashboard prompt. How do I access this variable in a Date between filter? I actually need data for chosen date's previous month (weird, why don't I choose the previous month itself. yeah true, but I want to try something else).
    I have tried the following but to no avail - CAST (TIMESTAMPADD(SQL_TSI_MONTH, -1, cast('@{pvEffDt}[MM/DD/YYYY]' as TIMESTAMP) as DATE)
    I get the following error -
    Odbc driver returned an error (SQLExecDirectW).
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 27002] Near <(>: Syntax error [nQSError: 26012] . (HY000)
    SQL Issued: {call NQSGetLevelDrillability('SELECT "AFM"."GRP_ID" saw_0, "HIER_DEF"."HIER_DSC" saw_1, "HIER_DIM"."CD_DSC_LV1" saw_2, "AFM"."HIER_ID" saw_3, "AFM"."ATTR_REF_DIM_KEY" saw_4, "AFM"."RPTD_CURCY_CD" saw_5, "AFM"."BMARK_ID" saw_6, "AFM"."WT_TOT_ADJ_ACCT" saw_7, "AFM"."WT_TOT_ADJ_BMARK" saw_8, "AFM"."PCT_CONTRIB_BASE_ACCT" saw_9, "AFM"."PCT_CONTRIB_LOCL_ACCT" saw_10, "AFM"."PCT_CONTRIB_BASE_BMARK" saw_11, "AFM"."PCT_CONTRIB_LOCL_BMARK" saw_12, "AFM"."SEC_SEL_BASE" saw_13, "AFM"."SEC_SEL_LOCL" saw_14, "AFM"."MKT_ALLOC_BASE" saw_15, "AFM"."MKT_ALLOC_LOCL" saw_16, "AFM"."INTERACTION_BASE" saw_17, "AFM"."INTERACTION_LOCL" saw_18, "AFM"."CURRENCY_EFFECT" saw_19, "AFM"."TOT_EFFECTS_BASE" saw_20, "AFM"."TOT_EFFECTS_LOCL" saw_21, "AFM"."SEC_SEL_BASE" - "AFM"."SEC_SEL_LOCL" saw_22, "AFM"."MKT_ALLOC_BASE" - "AFM"."MKT_ALLOC_LOCL" saw_23, "AFM"."INTERACTION_BASE" - "AFM"."INTERACTION_LOCL" saw_24, "AFM"."TOT_EFFECTS_BASE" - "AFM"."TOT_EFFECTS_LOCL" saw_25, "AFM"."EFF_DT" saw_26 FROM "Perf Attr" WHERE ("HIER_DIM"."CD_DSC_LV1" <> ''Total'') AND ("AFM"."GRP_ID" = ''3699'') AND ("AFM"."ATTR_REF_DIM_KEY" = 2) AND ("AFM"."EFF_DT" = ADD_MONTHS(DATE ''10/31/2012'', -1))')}
    Regards,
    Vijay.

    I had already tried this before and it didn't work either.
    Just to point it again, I am defining this In the filter, under More Options->Presentation Variable.
    i have also tried doing "Convert this filter to SQL" and passed
    ("ATTR_FACT_MTHLY"."EFF_DT" IN (ADD_MONTHS(@{pvEffDt}, -1)))
    Just to verify the same, I tried
    ("ATTR_FACT_MTHLY"."EFF_DT" IN (ADD_MONTHS(TO_DATE('31/10/2012', 'DD/MM/YYYY'), -1)))
    but even this did not work.
    I really don't know how to make it work. I simply need the filter to have the value "Chosen date's previous month".

  • How to make use of the presentation variable in SQL result query

    I have 2 prompts in my dashboard.
    Prompt1 decides the values of Prompt2.
    I have set a presentation Variable (selected_comp) in prompt1 which holds the value selected.
    To populate the values for Prompt2, I need to execute a query using the presenation variable set by Prompt1.
    SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=@{selected_comp}
    the query is resulting into
    SQL Issued: SELECT "List Of Values".RID from rocketv2_3 WHERE "List Of Values".NAME='COMPONENT' AND "List Of Values".VAL=0
    but the value in selected_comp is "ABC".
    Can anybody help in how to make use of the presentation variable in query to get the correct value
    thanks
    Shubha

    Just use constrain check box to filter your 2nd prompt values based on the 1st prompt.
    Thanks,
    Venkat
    http://oraclebizint.wordpress.com

  • How to pass a presentation variable to a stored procedure?

    Hi All,
    We have a complex security model to emulate. In order to achieve that, we need to find a way for OBI to run and pass parameter to a stored procedure (SP).
    "APlus_BI_EmplName2" is the name of the stored procedure.
    This SP requires a param and can be run in toad for SQL as : - exec APlus_BI_EmplName2 @ empno
    here is one example:- exec APlus_BI_EmplName2 128807
    It will result in empno, empname (128807,Looney VALERIE).
    Also, I have made a sample report on the Dashboard.Here i'm capturing a employee number via a dropdown in a presentation variable ( "empno") which i would like to pass to the stored procedure... just a way of testing that a variable/param can be passed to SP...
    Can anybody tell how to achieve the same?
    Regards,
    Apoorv

    What session variable now?
    You asked something else:
    Hi All,
    We have a complex security model to emulate. In order to achieve that, we need to find a way for OBI to run >and pass parameter to a stored procedure (SP).
    "APlus_BI_EmplName2" is the name of the stored procedure.
    This SP requires a param and can be run in toad for SQL as : - exec APlus_BI_EmplName2 @ empno
    here is one example:- exec APlus_BI_EmplName2 128807
    It will result in empno, empname (128807,Looney VALERIE).
    Also, I have made a sample report on the Dashboard.Here i'm capturing a employee number via a dropdown in a >presentation variable ( "empno") which i would like to pass to the stored procedure... just a way of testing that a >variable/param can be passed to SP...
    Can anybody tell how to achieve the same?To understand your problem please post your init. block code and your dashboard prompt field explanation.
    Regards
    Goran
    http://108obiee.blogspot.com

Maybe you are looking for

  • Camera Raw 6.7 installation not working with Photoshop CS5.1

    I have been trying to upgrade Camera Raw to 6.7 on my windows 7(32) machine running  CS5.1. It will not update via Help>Update (indicates download problem) or manually using the downloaded file and AdobePatchInstaller.exe (indicates "an error install

  • Error during runtime... Exception in thread "main" java.lang.NoSuchMethodEr

    I'm fairly new to Java, and admittedly not that great, considering I map my programs out the wrong way - in a VB style procedural basis, so my program probably has newbie "bad programming" things here and there, but that's not the problem. My program

  • Cat c6509 E with Supervisor vs-s720-10g reload and Cache error detected!

    Can you help me Cat c6509-E reload  connect console  I see : Initializing ATA monitor library... Self extracting the image... [OK] Self decompressing the image : ############################# [OK]               Restricted Rights Legend Use, duplicati

  • Implementing interface with static method?

    Hi, I need to implement an interface with a static method. I tried to do it both with the interface method static and non-static, but it don't seam to work! Does it work? How can I make a work around? Thanks!

  • Java.sql.SQLException: No suitable driver

    problem with JSP: in my web.xml i have: <context-param> <param-name>javax.servlet.jsp.jstl.sql.dataSource</param-name> <param-value>jdbc:mysql://localhost/java?user=test&password=test</param-value> </context-param> <context-param> <param-name>driverC