Presentation Variable in the SQL default section in the dashboard prompt

Hi Gurus,
I have two prompts and two go buttons. First Go button is used to populate pv_category1 presentation variable.
category_column --> pv_category1--> 1st Prompt
Product_Column --> pv_product2 --> 2nd Prompt
I want to set the default for the 2nd Prompt depending on the 1st Prompt ( Category) chosen by the user.
In the SQL default --> i have typed in the below Query.
*Select TableName.Product_Column from Subject_Area where category_column = '@{pv_category1}'*
The Problem is that i dont get any default value for 2nd Prompt after choosing the First prompt and hitting the GO Button.
If i hardcode the value in @{pv_category1} ...
for eg
Select TableName.Product_Column from Subject_Area where category_column = 'Incidents' i get the corresponding value as default.
But i want this 2nd prompt (product) to dyamically default depending on the 1st prompt (category) chosen by the user.
I am using OBIEE 10.1.3.4 and i have googled a lot on this topic...
can we not use Presentation variable in the SQL default section of the Dashboard Prompt?
Any help in this regard would be highly appreciated.
Thanks
Ashish

Thanks for the Quick Reply.
But the functionality that i want to achieve is the default value in the 2nd column (out of many values for 2nd column) based on the 1st column chosen by the USER. for eg we have two columns in our database ie category and Product.. Data goes like this
category ProductName
Incidents --- A
Incidents --- B
Incidents --- C
Changes --- D
Changes --- E
Projects --- M
Projects --- N
Projects --- O
Projects --- P
If the User chooses Incidents in the first prompt then the default in the 2nd prompt should be B ( out of A,B,C Values available in the 2nd prompt)....
Checking the constraint checkbox doesnt solve the default problem...
Thanks
Ashish

Similar Messages

  • Default Selection Issue in Dashboard Prompt

    Hi All,
    I am using the below logical SQL in SQL Results for Default Selection of a column in a dashboard prompt,
    SELECT "Facts"."Service Provider", "Config"."Integration Id" FROM "IMONIT - Transaction Log" WHERE "Config"."Integration Id"='@{inttype}'
    Here, I have used a presentation variable, which is set by another prompt. Also the Facts and Config table are joined in RPD. The issue is it does not selects the values returned by the logical SQL by default. But if i use the same logical SQL in SQL Results of Choice List Values for the same column in the prompt, the logical SQL does work and populates the prompt only with the values returned by the logical SQL.
    Any help is much appreciated.
    Regards,
    Maria

    Deepak, actually the scenario is that I am navigating to the page with the dashboard prompt from another answers report located on another dashboard page. This SQL works perfectly when I press the GO button of prompt on the same page. But its not working when I am navigating to the same page with the prompt from any other report. Any ideas ?

  • Possible to have dynamic default selections for a dashboard prompt?

    I'm running OBIEE 11.1.1.6.5, and I have customer who would like to know if it is possible to dynamically select default values on a dashboard prompt based upon other user prompted columns on the same prompt. For example, I built a dashboard prompt with three fields: Month, Customer, and Product; and I want to add a default selection to my Products prompt to pick the "top 4 products" based on the selected Month and Customer.. assuming every Customer+Month has a different "top 4 products".
    Does anyone please have a suggestion on how I could approach this solution?

    Thank you for your response. I've tested this approach and it seems promising. My concern I have there is how to treat "(All Choices)" values. Say the user selects All Choices on customer or period, and the presentation value in my SQL Results query reverts to whatever default value specified, which is not the intended behavior. My question then becomes how do I treat the null or All Choices and somehow omit the filter criteria or specify fy All Choices as a default to the presentation variable? Your advice is much appreciated.

  • How to realize this reqirement in the dashboard prompt in OBIEE 10G?

    Hi,
    I have a new query about dashboard prompt in OBIEE 10g..
    All below is needed to Operator in the dashboard prompt.
    We have 4 columns, 4 columns using multi-select type need to constrain together and need to show value which is related with product..
    e.g.
    Now I display "REGION" column using multi-select in Control, and I need to show data which product name is not null. After I add "where product name is not null" in the SQL results in Show, then I cannot use the Constrain box.. and I cannot set any variable if I using multi-select type..
    So anybody have any idea about this?
    Your reply will be highly appreciate..
    Regards,
    Anne

    Hi Anne
    User Input type as " Multi select prompt" keep it with constrain option then apply below query
    apply like this kind of SQL query in Default selection --->SQL result section
    SELECT "MX_PORTFOLIO_STATIC"."MT_BU_Level1" FROM "Position" where "MX_PORTFOLIO_STATIC"."MT_BU_Level1" is not null
    Thanks
    Deva

  • How  to get the value of multi-select in the   Dashboard Prompt

    I have a multi-select prompt in the Dashboard Prompt,  what I want is,   how do I know that user has choose one value,
    for examle,  for some reasons,  if user didn't choose any value,  then I will set one column in answer as "customer office" , if user choose one value, then the column in answer will be "customer name". 
    any comments, thanks.

    Hi,
    first define the presentation variable for the required column prompt. ex: PV
    Then in report level set the filter for that column = @{PV}{customer office}. here u have to give default value as "customer office", so by default the report in dashboard will show customer office even though the user does not select any value from dashboard prompt.
    Mark If Helpful/correct.
    Thanks.

  • 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

  • Can I change the Caption (name) of the button Go for the dashboard prompt

    Hi,
    Can I change the Caption (name) of the button Go for the dashboard prompt
    I need to change the name of the button to Set Prompt Values.
    i did not see an option to do this
    Thanks

    Hello Yusuf,
    First follow the forum Etiquette, see this http://forums.oracle.com/forums/ann.jspa?annID=939
    You have to close the answered threads...
    And regarding your question
    Go to *{OracleBIDir}:\oraclebi\web\msgdb\l_en\messages*
    Open globalfiltermessages.xml file.
    Find this text
    <WebMessage name="kmsgGFPGo"><TEXT>Go</TEXT></WebMessage>Now edit the Go which is there between the TEXT tags..
    Ex: i am editing Go to Confirm
    <WebMessage name="kmsgGFPGo"><TEXT>Confirm</TEXT></WebMessage>Save this file and just restart your presentation service.
    Check your dashboard prompt now...
    (Editing this post from here)
    As per your requirement edit should be:
    <WebMessage name="kmsgGFPGo"><TEXT>Set Prompt Values</TEXT></WebMessage>Edited by: Kishore Guggilla on Jul 18, 2009 2:45 AM

  • How to get the column names of the table into the Dashboard prompt

    how to get the column names of the table into the Dashboard prompt
    Thanks & Regards
    Kishore P

    Hey john,
    My requirement is as follows
    I have created a Rank for Total sales by Region wise i.e RANK(SUM(Dollars By Region)) in a pivot table.
    My pivot table looks like this
    COLUMN SELECTOR: TOTAL US , REGION , DISTRICT , MARKET
    ---------------------------------------------------- JAN 2009          FEB 2009        MAR 2009
    RANK              REGION                  DOLLARS           DOLLARS        DOLLARS DOLLARS
    1 CENTRAL 10 20 30 40
    2 SOUTHERN 10 30 30 70
    3 EASTERN 20 20 20 60
    4 WESTERN 10 20 30 40
    When i select the District in column selector
    Report has to display rank based on Total Sales by District. i.e
    ------------------------------------------------- JAN 2009         FEB 2009       MAR 2009
    RANK             DISTRICT              DOLLARS           DOLLARS        DOLLARS DOLLARS
    for this i need to change the fx of rank i.e RANK(SUM(Dollars By Region)) to RANK(SUM(Dollars By District)) and fx of Region i.e Markets.Region to Markets.District dynamically.
    so , i need to capture column name of the value selected from the column selector and dynamically i need to update the fx 0f RANK & fx of region.
    do you have any solution for this?
    http://rapidshare.com/files/402337112/Presentation1.jpg.html
    Thanks & Regards
    Edited by: Kishore P on Jun 24, 2010 7:24 PM
    Edited by: Kishore P on Jun 24, 2010 7:28 PM

  • How to convert date in the dashboard prompt

    can anybody tell me how can i conver the date into month year format in the dashboard prompt
    originally i am getting data as a date in the dashboard prompt.i want to change that to MON YYYY format.
    can anybody tell me how can i change the original date format into MMM YYYY format

    hi,
    Try with evaluate function in prompt Fx use the following syntax
    Re: Date function
    Else, EVALUATE('TO_CHAR(%1,%2)' AS CHARACTER ( 30 ), Date."Calendar Date", 'MON-YYYY')
    What you are expecting to be in Prompt was it Mon-2009 right"?
    Thanks,
    Saichand.v

  • Passing Chinese characters in OBIEE 11g GO URL to init the dashboard prompt

    Hi Experts,
    Currently we are using OBIEE 11g and passing the dashboard prompt parameter values through the OBIEE go url. When we are passing English strings the dashboard prompt is initialized with the correct passing value. However for Chinese character it is not. I am using the URLEncoder.encode("parameter value", "UTF-8") encoding to encode the passing string.
    Can anyone tell me what is the wrong in this approach? How can we pass any language strings to OBIEE 11g via go url?
    Thanks

    To avoid encoding problems use POST method. Here is js example for OBIEE 10g, but I bellieve you will find similar XML syntax in 11g.
    function getGoXML(P){
         var goXML = '<sawx:expr xmlns:sawx="com.siebel.analytics.web/expression/v1" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="sawx:logical" op="and">';
         for (var i=0; i<P.length-1; i=i+2){
              goXML = goXML + '<sawx:expr xsi:type="sawx:comparison" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" op="equal">';          
              goXML = goXML + '<sawx:expr xsi:type="sawx:sqlExpression">' + P[i] + '</sawx:expr>';
              goXML = goXML + '<sawx:expr xsi:type="sawx:untypedLiteral">' + P[i+1] + '</sawx:expr>';
              goXML = goXML + '</sawx:expr>';          
         goXML = goXML + '</sawx:expr>';
         return goXML;
    function dashboardPageNav (navParams){     
         var tForm = saw.createForm("customNavForm");
         tForm.action = saw.commandToURL("Dashboard");
         saw.addHiddenInput(tForm, "PortalPath", navParams.portalPath);
         saw.addHiddenInput(tForm, "Page", navParams.portalPage);
         saw.addHiddenInput(tForm, "Action", "Navigate");
         saw.addHiddenInput(tForm, "StateAction", "NewPage");
         saw.addHiddenInput(tForm, "P1", "dashboard");
         saw.addHiddenInput(tForm, "P0", getGoXML(navParams.P));
         tForm.submit();
    dashboardPageNav({
         portalPath: '<portal path>',
         portalPage: '<page name>',
         P: new Array(                         
              '<param1 name>', '<param1 value>',
              '<param2 name>', '<param2 value>',
              '<param3 name>', '<param3 value>',
              '<param4 name>', '<param4 value>'
    });

  • Using substring function in the dashboard prompt

    Hi,
    I want to use a function in the dashboard prompt.
    Example: Subject Area:Paint --> Products --> Color
    I want to take second letter of color, describe a label for it and use this label in prompt. The formula is below;
    CASE WHEN (SUBSTRING(Products.Color FROM 2 FOR 1) = 'a') THEN 'AAA' ELSE 'BBB' END
    Dashboard prompt should list 3 choices; All choices, AAA, BBB.
    When selecting AAA in the prompt, these colors should be listed in the request; Carriage House Red, Dante, Manchester Red.
    I created a dashboard prompt (add a function) and a request. When selecting AAA in the prompt, it sends "AAA" as prompt, not sends "a". So I couldn't reach the result.
    Is it possible? Could anyone help me ASAP?
    Thanks & Best Regards,

    Create a column in the logical layer using the same formula that you described. Then use the new column in the prompt. Then add the new column to the report as 'is prompted'.

  • Unnecessary Report refresh on the dashboard when changing the dashboard prompts

    Hello All
    I have two reports on a dashboard with two dashboard prompts for example Report 1) Year, State, Count; Filter: Year is prompted 2) Year, State, Count; FIlter: State is prompted. On the dashboard we have two reports Report1) and Report 2) with Year and State dashboard prompts.
    The issue is when you change year prompt both the reports gets refreshed even though nothing changes on report 2 but it still dissapears and appears as it is refreshing and  the same happens with report 1 when i change the state prompt it refreshes that report.
    Please letme know how i can limit the dashboard prompt to refresh only the report where it is prompted.
    Thanks
    Ravi

    are you talking about the database table caching? if so we are using OLAP cubes and I am not sure if caching is disabled. Is my issue related to caching? also another updated if I have just one dashboard prompt for example just year  only report 1 refreshes and the report 2 doesn't disappear. But when I add state dashboard prompt, which ever prompt I change state or year  both reports refreshes. The problem is when I add more than one prompt on the dashboard all the reports refreshes when the dashboard prompt selection changes. Any ideas.
    Thanks

  • 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

  • Presentation Variables in the report column

    Hi Experts,
    I have one requirement like when a Dealer log-in in the Monthly report there is one date prompt[format 1995/01] now i have to create one new column that column as to filter the data based on date selected by the Dealer in the prompt
    and the filter should be like this
    case when
    *date={selected date from prompt by the user}*
    then
    *{monthly sales of that particular Dealer}*
    result of this column i have to use in the other column.
    how i have to implement this logic can we do this by using presentation variables please let me know the syntax.
    Thanks in Advance,

    Write the case statement as below.
    case when
    date=@{Pv_Date}{1995}
    then
    {monthly sales of that particular Dealer}
    Pv_Date is the presentation variable name.
    Thanks

  • Can we have a Default Value for the dashboard prompt ?

    Hi
    I have a requirement as when we run the dashboard, dashboard prompt should be defaulted with a value for the first time.
    Defaulting the values is done by SQL Results,but when i try to change the values for that prompt it is not showing any other values other than the defaulted prompt.
    Ex: I have a dashboard prompt as Employee Name and i have defaulted the value for that with 'Scott' and ran the dashboard.
    When i try to run it for different employee i am not able to get other values to be selected.
    Do we have any mechanism as such we can have default value when we run the dashboard for the first time and then all the values when we run it for the second time?
    Thanks

    user12846884 wrote:
    Defaulting the values is done by SQL Results,but when i try to change the values for that prompt it is not showing any other values other than the defaulted prompt.
    ThanksYou do something wrong. What is the version of OBIEE? How do you create prompt?

Maybe you are looking for

  • Is there any API for TouchScreen Programming

    Hi, Can any give me information about touch screen api in java. Thanks & Regards Ashok.

  • MOVING TV SHOWS TO Ibook

    Can someone please tell me how to move tv shows (downloaded from iTunes) off of my iMac and onto my iBook without using a video iPod as an intermediary? I don't own a video-enabled iPod. Suggestions? Thoughts? Brilliant ideas? Thx. TW iMac G4 f.p. 15

  • Report of MIRO

    Hi Gurus, My client wants a report following details 1) Po Number and MIGO doc number and corresponding  Miro number 2) PO Number and MIRO number with vendor details Please suggest me any standard reports avilable in SAP. Regards Sreenivas.P

  • ERM Role Methodology Process - Steps

    Hello Gurus, I am on SP17 and have uploaded relevant init files. Have also performed background job sync. When I create a role in Role Definition stage and save it, the role does not pass or promote to next step i.e. Role Authorization Stage. GRC sav

  • Database lock problem?

    Could someone please help? I have been trying to solve the problem for a week full-time, it seems so easy, what do I miss? Many thanks in advance. 2 clients and 1 DBMS server Clients are using OCI 8.1.7 This is what happens: 1. Client 1 (CL01) connec