OBIEE Answers version 10 presentation variable

How can I use in OBIEE Answers ( version 10.1.3.4.1) a (dashboard)presentationvariable in an other (dashboard)presentationvariable. I have one presentationvariable 'Gerecht'. The other presentationvariable #Instroom uses in the SQL(SELECT #Instroom FROM Bestuur WHERE Organisatie = @{Gerecht}) the variable @{Gerecht}. I have tried several syntaxes '@{Gerecht}' and 'Gerecht' This is not working. Can anybody help me?

I have changed the variable with the cast version as you said. After I run the dashboard I get an error:
Begin error:
SELECT "Aandachtsgebied Zaaksbehandeling"."# Instroom" FROM "Bestuur - Bestuurszaken" WHERE Organisatie.Gerecht = CAST('Rechtbank Dordrecht' as Organisatie.Gerecht)
Toestand: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27002] Near <Organisatie>: Syntax error [nQSError: 26012] . (HY000)
End error:
The value 'Rechtbank Dordrecht' is the value that I had choosen in the first dashboardprompt. So that seems to be ok. But is there maybe something wrong in the CAST syntax?

Similar Messages

  • OBIEE 11g:  Use presentation variable in Column Heading

    Hi everyone,
    I was playing around with sample app dashboards and I saw a dashboard prompt that they converted into a column selector. I liked it and reproduced it in my own sandbox.
    I like the results, however, I would also like to change the column heading to clearly reflect which measure was selected. It's pretty clear when you are looking in the dashboard, but once you export the data, it can be confusing which measure was selected.
    That is why I would like to use a presentation variable in the column heading section. I tried to do this but it interpreted it as a literal instead of evaluating the statement.
    Is there anyway to get a variable in the column heading?
    Thanks!
    -Joe

    Hi,
    Have a look at the following links:
    http://oraclebizint.wordpress.com/2008/01/25/oracle-bi-ee-101332-dynamic-column-headers-using-presentation-variables-sets-and-conditional-formatting/
    show the presentation variable on table column header
    Define presentation variable in column header
    hope it helps.
    Regards,
    Kalyan Chukkapalli
    http://123obi.com

  • Presentation Variable issue in OBIEE 11g

    Hi,
    I have 2 reports, report 1 and report 2
    When i drill down on report 1 column 'Number of id's' will open the details report of Id's report 2
    I am using a Presentation variable in report 2 filters (detail report) which is generated in Main report dasnbord prompt.
    They have separate star schema.
    Main report(reprot1) using Aggregated table.
    Sub report(report2) using detail table.
    Problem:
    After upgradation from OBIEE 10.1.3.4 to OBIEE 11.1.1.5,(Unix server) The presentation variable value is not getting passed to the detail report. This is working completely fine in OBIEE 10g.
    Is there any BUG in OBIEE 11g wrt presentation variable or do we want to change the configuration?
    Thanks,
    Satheesh

    Hi,
    Not sure about the behaviour in 11g, but we faced a similar issue in 10g while passing the presentation varaibles to detail report where main/detail report where coming from different subject areas. The behavior was a little unpredictable. To overcome this, we tried using request variable instead of presentation variable and it worked for us.
    You can give it a try by doing the same and see if it works for you.
    Thanks

  • 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

  • Presentation Variable in obiee 11g

    Hi all ,
    I had a dashboard report with year , quarter , month and order type name as prompts .
    Now my client requirement is , when order type name is "Ord" , the reports with order type name starting with 'ORD" should be displayed.
    In simple i know we will use " Like" operator .
    But now my problem is we have to assign a presentation variable for order type name.
    So can some one tell me how to add a presentation variable in OBIEE 11g , i tried in web , but none of it helped me to finish the job ,, since i am very new to obiee can some one please explain me in non technical language
    Thank you for your help

    Hi Jay , Thank you very much for reply , now i got a little idea , but few doubts abt ur reply .
    Yes i will edit dashboard prompt and assign a like operator and will save the prompt , but when editing the report , you said to apply a filter *LIKE @{presentation_variable}{default_value}%*
    In the above what will be in place of presentation_variable and what should be in default_value.
    I have tried it in this way : Like @{Sales Order Lines Order Type Name} , where Sales Order Lines Order Type Name is my dashboard prompt .
    but it didn't worked when i have given 'Ord' in dashboard prompt the error says: Sales Order Lines Order Type Name is LIKE (pattern match) ord

  • How to create Presentation Variable in OBIEE 11g

    Hi,
    Can any one tell me how to create a Presentation Variable. I know about the creation of Session and Reporsitory variables.
    Is it to be created in the Edit formula of the column in criteria tab.
    Thanks

    Hi,
    Refer : http://gerardnico.com/wiki/dat/obiee/presentation_variable_initialization
    Thanks
    Aravind

  • Constraints for presentation variable in obiee 10g

    Hello Guys,
    What are the constraints for presentation variable in obiee 10g?
    requirement: I am unable to find the variable option, when i selects CONTAINS operatior, during creating the prompt.

    Hi,
    In 10g, a dashboard prompt can only set presentation variables when you use the "is equal to/is in" operator. Also, it is not available in case of MultiSelect prompt.
    Refer to the below thread for some alternate solutions:
    visualize prompt values into report Answer?
    Thanks

  • OBIEE 10 - Is Possible change the Presentation Variable without GO BUTTON ?

    OBIEE 10:
    Is Possible change the Presentation Variable only changing the Value on the prompt ??
    Or the presentation variable only change if click on "GO BUTTON" ????
    Thanks.

    You need to click the "Go" button. That is what sets the variable.

  • Info on Presentation Variables used in OBIEE

    Hi All,
    I need some information on Presentation Variables which are used in OBIEE.
    a. We can filter on a column using actual value. What is the benefit of using a Presentation variable to filter on a column?
    b. Is there something a presentation variable can do which a repository variable cannot.
    c. Can a presentation variable be used to filter on a dashboard itself rather than going to Answers to filter the request
    d. Where else can a presentation variable be declared apart from dashboard prompt?
    Regards,
    Apoorv Chitre

    Hi Apoorv,
    let me try to answer your questions one by one
    a. We can filter on a column using actual value. What is the benefit of using a Presentation variable to filter on a column
    As you say, if you need a filter which does not use an actual (fixed) value (or where the value is passed from a prompt) then it is a good idea to use variables (could be repository, session or presentation variable) which variable type you choose depends on 1) the way the value is passed to the variable and 2) the type of data (e.g. a variable CURRENT_MONTH is definitely valid for all users, so it would be a good idea to use a repository variable).
    b. Is there something a presentation variable can do which a repository variable cannot.
    Presentation variables are session-specific, that is they can have different values for each user. Repository variables have the same values for all users.
    c. Can a presentation variable be used to filter on a dashboard itself rather than going to Answers to filter the request.
    Not sure what you mean...
    d. Where else can a presentation variable be declared apart from dashboard prompt?
    I have compiled an overview of all variable types in OBI EE and how they can be declared here
    Presentation variables can only be set using dashboard prompts.
    have a nice day
    @lex

  • 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

  • Unresolved column when using presentation variable in Answers filter

    Hi all,
    I'm using a dashboard prompt that sets a presentation variable - pres_year. I'm using the presentation variable in a request's filter.
    In the 'Criteria' tab, in the filter for the request, I set a year column (YEAR) to the presentation variable via Variable Expr and enter the presentation variable name only. End up with:
    YEAR is equal to / is in @{pres_year}
    When using the dashboard, the prompt and request all work fine. The problem is when I'm in the request in Answers and I click on 'Display Results' button. I get the following error:
    'NQSError: 27005 unresolved column pres_year'
    Any suggestions?
    Thanks.

    I got same error, if i'm using SQL Expression, instead of variable expression in filter section.
    make sure that you followed this:
    filter on year > Add > Variable > Presentation. Then, give the presentation variable name (which you defined in dashboard prompt) in Variable Expr field , click OK
    getting same error when using:
    Filter on year column > Add > SQL Expression > presentation variable. This is not right place to give presentation variable.
    and, error i got:
    *State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005]* Unresolved column: "var_Year". (HY000)
    so, make sure that you are suing the right one..

  • OBIEE-Presentation Variable in SQL expression in a Column Filter

    Hi,
    I have the following:
    (1) A dashboard prompt having Month names like eg. October,July etc
    (2) I have declared a Presentation Variable by name @{Month}
    (3) A report is there where i have a column called 'Scenario' which has values like 'Actual','Budget','LE_Jul','LE_Oct' etc
    (4) In 'Scenario' column , i have given in the column filter-->SQL Expression as below:
    ('LE_'||SUBSTRING(CAST('@{month}{July}'AS CHAR(40))FROM 3))
    My end result should be like whatever month name(ex. July) is selected in the Dashboard Prompt, my scenario should be equal to 'LE_Jul'.
    I am getting Error like :
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 43119] Query Failed: [nQSError: 16001] ODBC error state: 37000 code: 8180 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Statement(s) could not be prepared.. [nQSError: 16001] ODBC error state: S0002 code: 208 message: [Microsoft][ODBC SQL Server Driver][SQL Server]Invalid object name 'DIM_SCENARIO'.. [nQSError: 16002] Cannot obtain number of columns for the query result. (HY000)
    Pls give ur inputs if anyone has faced such an issue.
    Thanks.

    Hi,
    I checked that box in Connection Pool Settings.
    But now , though i have data for Scenario "LE_Jul", i still get No Results.
    Kindly let me know what else i am missing out in this regard.
    Thanks.

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

  • OBIEE 11g Front End Calculations with Presentation Variables Error

    Hi Guru's,
    Long time user first time poster to the forums but hopefully you can help.
    I have a requirement to perform an aggregation on certain fields with a dynamic grouping requirement (so users can select which grouping they require ie, sum profit by [outlets or companies or region]).
    The approach I am using is a prompt setting a presentation variable with the possible groupings for the calculation as choices, and a column in the report with a formula to SUM("table"."column" by "@{variable}{default}") this also contains a dynamic column name containing the presentation variable too.
    Where the column could be profit and the variable prompt options could be outlet, company or region (from the above example).
    This is currently separate from the RPD due to the dynamic nature required with groupings changing at run time and is done in the front end.
    However on selecting some columns via the prompt I receive this error:
    Error Codes: OPR4ONWY:U9IM8TAC:OI2DL65P
    State: HY000. Code: 10058. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 43113] Message returned from OBIS. [nQSError: 22027] Union of non-compatible types. (HY000)
    This only occurs on some field groupings, and is not a certain type in particular. (Including both short date, short time and varchars).
    Any ideas where this problem could stem from?
    Regards.

    Based on given info: Try this
    SUM(cast("table"."column" as int) by "@{variable}{default}")
    Pls mark if helps

Maybe you are looking for

  • Best Practice for Migration of BO  from one server to another

    Hi All,            I would like to know what is the Best pratice for Migration of BO from One server to another. i have Installed BO Xi R2 on my server. Thanks, Anendu Bothra Edited by: Anendu Bothra on Mar 5, 2009 10:24 AM

  • Save As PDF from Word not working

    Hi all, Getting a bit anxious here. I'm on a Mac and for years I've been creating PDFs from Word (Office X, 2003) by following the path: File > Print > PDF button > Save as PDF. It's always worked perfectly. I bought my new iMac last week and could n

  • Method overloading in an interface

    Hi , I Have an Interface that contains overloaded methods Interface Interface1 void method1(); String method1(int i); }I implement this Interface in a class ExampleClass public class ExampleClass implements Interface1 void method1() String method1(in

  • Programs unexpectedly closing?

    I bought a powerbook last december and as of recent I've had programs such as safari, iTunes, Photoshop...close unexpectedly many times. I've sent reports to apple but I dont know what that is supposed to do. Has anyone had this problem?

  • Apple USB External SuperDrive

    Just purchased Apple USB External SuperDrive to use on MacBook Pro who's internal drive is kaput! Running OS X v.10.8.5 on it... have tried plugging USB into two different USB ports and the drive will not take any DVDs/CDs, having tried numerous ones