Presentation Variable name being passed as value

I have a requirement where value needs to be checked against two separate fields for filtering (as OR statement). But there should be ability to filter on these fields separately as well.
Dashboard prompt:
Province [Multi search]
State [Multi search]
Combined search (Province OR State Fields) [Edit Box] --- used to pass presentation variable
Report filter:
Province is prompted
AND State is prompted
AND Province is @{presentation_variable} (no default)
OR State is @{presentation_variable} (no default)
But if the text field with presentation variable in not used to filter, then the report shows no result because the presentation variable name itself is taken as a value. Any solution how this can be done making sure that if province only is searched for then the presentation variable is not passed as value and the query returns no results?
Thanks everyone.

Thanks Rachit, that helps. For the scenario mentioned initially, even this works:
Province is @{presentation_variable} (no default)
OR State is @{presentation_variable} (no default)
But the challenge is if I want to add another filter (like country) also as a filter. When users filter only on country, then the report shows no results because no value has been passed to the presentation variable and the query generated uses presentation variable name as the value!

Similar Messages

  • JSP : create variable dynamic variable name and get his value.

    //HI forums.sun.com !
    //What I want to do is above :
    //out.println("<td style=\"width: "+col_width_+h+" \">")
    //Variable Declaration
    String col_width_1 = "100px";
    String col_width_2 = "150px";
    //etc String col_width_N = "XXXpx";
    //loop
    for (int h = 0; h < hrecset.getRowCount(); h++)
    //some code
    //create the variable name (exemple : col_width_0 ) with the "loop counter name" to get the value
    out.println("<td style=\"width: "+col_width_+h+" \">")//Do you understand what i mean?
    //some code
    //Variable Declaration
    String col_width_1 = "100px";
    String col_width_2 = "150px";
    //etc String col_width_N = "XXXpx";
    //loop
    for (int h = 0; h < hrecset.getRowCount(); h++)
    //some code
    //create the variable name with a concat with the loop counter variable name to get the value of the concatened variable
    out.println("<td style=\"width: "+col_width_+h+" \">")//Do you understand what i mean?
    //some code

    I apologize
    1) Sure i understand it but i click on the "code" button after i inserted the text above but it doesn't worked now it do.
    2) Because the table element need to have the total width in the HTML table TAG equal to the addition of every HTML td TAG to be W3 conform
    because i have a lot of cell where i want to adjust the width.
    so here my solution
    <%
    //Variable für Breite
    String col_width_unit = "px"; // px, cm,
    Integer total_table_width = 0;
    String[] col_width=new String[3];
    col_width[0] =  "350";
    col_width[1] =  "75";
    col_width[2] =  "50";
    %>
    <table style="page-break-inside:avoid;width:<%=gesamt_table_width+col_width_unit%>;">
    <%
    for (int h = 0; h < hrecset.getRowCount(); h++)
    out.println("               <td id =\"cell"+h+"\" class=\"tdall\"  style=\"width:"+col_width[h]+col_width_unit+"\" >");               
    %>
    </table>thank you very much

  • Text Variable(Customer Exit) displays variable name instead of its value.

    Hi Gurus,
    My requirement is to display the year(from variable) as the field name i.e Year end salary 2009.
    I was using the fields name as hardcoded values like 2009 but as per my requirement i need to display it from the variable.
    I tried using Text Variable using customer exit, but I'm getting variable name(zvariable) instead of value(2009).
    Please help me out, many thanks in advance.
    Regards,
    Ankur

    Hi,
    Actually I tried to create a Text Variable with Replacement Path.
    But here the problem is that we have a Characteristic Variable (Customer Exit) which is not listing in the selection box of Replacement Path.
    Hence we tried to create another Text Variable (Customer Exit) and refering to the same Customer Exit code.
    Regards,
    Ankur

  • How to define parameter variables to be passed by value by default

    When defining a new parameter for a sequence, it is set by reference by
    default. Obviously sometimes when passing a parameter we dont want the
    sequence receiving those values to be able to modify it by mistake and
    corrupting the value from the calling sequence. Is it possible to have
    the parameter variables created with passed by value by default?
    Thanks!
    Louis

    Louis -
    The default setting is by ref and we do not expose a way to customize this.  One of the reasons we chose by ref instead of by value for the default, is that when you specify by value for a container, the entire container must be cloned and this adds overhead to a sequence call that users may not want.
    Scott Richardson
    National Instruments

  • Formula on presentation variable name

    Is possible to get this?
    I would like to create a presentation variable depends on a formula...like: @{'pv_'||'CASE WHEN SUBSTRING....'}
    Is possible to do this?
    Thanks!

    Hi,
    While passing the presentation variable from prompt you need to pass only with the presentaation variable name.
    You can create an intermediate report with getting the presentation variable and case statement and then pass this to the main report column(filter based on another request)
    Hope this helped/ answered
    Regards
    MuRam

  • How can I use variable name as a prameter value in HOST Command ???

    Hi All,
    How can it possible to use variable value in parameter in HOST command ??
    Following in my code:
    host('rwclient server=reptest report=c:\cust_print.rdf p_1= s_sam_cust_id userid=wh1/wh1@dwh desformat=pdf desty=file desname=c:/temp/'||v_sam_cust_id||'.pdf');
    Regards

    Hello,
    The Syntax of the builtin HOST is :
    SyntaxPROCEDURE HOST
    (system_command_string VARCHAR2);
    PROCEDURE HOST
    (system_command_string VARCHAR2,
    screen_action NUMBER);
    So , you can build the system_command_string as any VARCHAR2
    Example are provided in online help :
    http://www.oracle.com/webapps/online-help/forms/10g/topics/f1_help/builth_m/host.html?tp=true
    Regards

  • 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 pass a presentation variable to new window?

    Hi Experts,
    I need to give a link on Dashboard1 which opens Dashboard2 in new window. Is there any way that I can pass a presentation variable value of Dashboard2 from Dashboard1's link??
    Thanks.

    Yeah, that's been a problem. If you use Link or Image, you can open the link in a new window, but Presentation Variables won't pass. If you use Guided Navigation, you can pass Presentation Variables, but you don't have the option of opening the link in a new window. One or the other unless someone else has a workaround... I haven't discovered one yet. Sorry.

  • Using Presentation variables..along with case statements..

    Hi All.
    I have a issue using presentation variable along with CASE statements. My approach is
    1) I have a dashboard prompt, which is being set as Presentation variable.
    Based on the value selected in prompt, for ex the values of prompt can be 'ABC' and 'DEF'.
    I have a calculated column, the calculation goes this way...
    The forumal is
    CASE WHEN @{Presentation Variable Name} = 'ABC' THEN xxxxxxxxxx ELSE IF @{Presentation Variable Name} = 'DEF' END. It gives error of "no table being referenced"..
    Is this is the right approach??
    Can i get the values of variable in a column formula, so that a column can have values selected in prompt?
    Can anybody pls help me here..
    Thanks in advance...

    Hi
    Thanks for the quick response..
    I agree to ur point..
    But the requirement is
    Based on the value of the prompt I need to switch the calculation in one of the formula area of one column..
    If Prompt value is ABC then one kind of calculation in Fx and If the prompt value is DEF then one kind of calculation in the same Fx..
    How can I acheive this?
    Thanks in advance..

  • 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

  • Using presentation variable in a dashboard prompt

    Hi All,
    Can we use a presentation variable set in 1 dashboard prompt in another dashboard prompt to filter the values shown in the prompt based on the value selected in the first prompt?
    I am using SQL results in the second prompt.So, Iam not able to constrain the results. Any ideas?
    Thanks.

    Steps:
    1. 1st Dashboard prompt set Presentation Variable name say pdashboardprompt1
    2. In 2nd Dashboard prompt set Presentation Variable name say pdashboardprompt2
    In SHOW SQL results for 2nd Dashboard prompt. Select constraint
    SELECT Table1.Column1 FROM "SA" WHERE Table1.Column2 = '@{pdashboardprompt1}'

  • How to pass the value between two screen in dialog programming.

    hi everybody,
    In case of dialog programming I have two screens 200 & 300.I want to get the value of textfield in screen 200 in scrren 300 in a label or in textfield.
    Thanks
    byee

    Aashish,
      Welcome to SDN!!!!
      SAP does automatic data transfer when u have the variable defined in the Program and same variable(name) being used in any number of screens in the same program.
    U donot want to worry abt Data Transfers!!!
    If this does not solve ur requirement, let us know.
    Thanks
    Kam

  • How to pass form value through URL?

    I have a page set up so that pressing the submit on a form will execute a certain page. For certain reasons I also have a URL HREF link that performs a different function. I need to get the value of a radio button group (all with the same name) and pass that value through the URL if it is pressed. So if someone clicks on the second radio button in the list which has a value of 2, I need to somehow set that to a variable to pass through a URL link. Each time the user changes the radio button I need to dynamically change the variable too.
    Is there any way to do this?

    Thanks for the suggestions everyone. Here is what I have so far:
    I have a cfInput that binds to the radio buttons so the value of the cfinput changes dynamically.
    I have a CFDIV that binds to a separate .cfm page that passes the cfinput through as an argument.
    The .cfm is very basic:
    <cfoutput>
        <cfif isdefined("url.InputText") AND url.InputText NEQ "">
            <cfset FeedVar = #url.InputText#>
        <cfelse>
        </cfif>
    </cfoutput>
    This method appears to work and it sets the Feedvar variable to the appropriate value. However on my first page with the cfdiv tag when I try to pass the #FeedVar# variable through a URL it says it is not defined.
    Any clue if I am doing something wrong passing the new variable back?
    Here is the CFINPUT and CFDIV tags:
    <cfinput type="text" name="update_typeURL" bind="{update_type}" bindonload="true" />
    <cfdiv bind="URL:setURlVar.cfm?InputText={update_type}" ID="theDiv" bindonload="true"  />
    Any ideas on how to read the newly set variable?

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

  • Using presentation variables selected in dashboard prompt in query builder

    In dashboard prompt I have made four dropdowns(have four presentation variables) and based on these values selected,can the Query Builder generate dynamic reports based on the presentation variables selected?
    I will provide the link(i.e Link of BI publisher where I stored the report) displayed to the user based on Four presentation variables.
    If we click on that link can we use the presentation variables in where clause of Query Builder in BI Publisher?
    Please help me out
    Thanks in Advance

    - OK. In the second prompt, instead of setting Default to SQL Results, set it to Specific Value.
    - Then insert '{pres_var}' in the window. I got it to work this way.
    - It supplied the PV as the default in the second prompt after hitting "Go" on the first prompt.
    Hi, thanks for your suggestion but I don't need to have the value of the presentation variable itself as the prompt default. The variable is a filter for a specific SQL clause and the default is the result of this SQL.
    Cheers
    DrPlexi

Maybe you are looking for

  • X6: why is there no photo album option in the gall...

    why is there no photo album option in the gallery? other units like the N79 had this option.. but i dont get why they didnt include it with X6 that sucks... ive had alot of trouble finding reliable and working photo programs that allow photo album...

  • Not receiving group messages on iPhone 6 plus after updating to iOS 8.2

    After updating to iOS 8.2 I suddenly stopped receiving group messages on a thread of which I was previously a part. Apparently they can see my texts, but I cannot see their replies. Tried rebooting. Switching messages, group messages, face time, and

  • Net value posting of 2 line items to 2 g/l accounts

    Dear Gurus, I have a requirement where I have a sales order with 2 different line items and I need to post the net values for which of those line items to different GL accounts. how can i do this Wishes, Abhishek

  • Tip: How to read "eBooks"

    I would love to see either Apple or a third-party developer provide a decent eBook reader application, but until that happens there is a pretty good workaround: Email yourself the file and use the new Mail application to view it. I use Gmail, so sett

  • 210-4125 will not boot when windows 7 x64 is installed

    i have posted this problem a while ago "210-4125 will not boot when windows 7 x64 is installed" hoping that some one new might have had the same problem HP.......................................HP MINI PC  210-4125 model .............................