Pass Prompt values into Legend / '-ALL-' filter filters out all records

Hi
I have 2 questions for the same chart so I hope it's OK to add them in one post.
Firstly I have created a chart & added three Select List filters which work fine, the query is below, problem is that when I change back to '-ALL-' I get no data, it has filtered out all records as no data matches the value of '-ALL-' does anyone know the code to get around this?
My chart query;
select null link, P_MONTH AS MONTH, SUM(CALLS) AS data
from DATA.MAIN_DATA
WHERE WAREHOUSE = :P1_WAREHOUSE
AND ANS_UNANS = :P1_ANS_UNANS
AND PRODUCT = :P1_PRODUCT
GROUP BY P_MONTH
As I will have several queries like the one above for different options on the same chart, I would like the Legend to show what the user has chosen each time the options are changed ie;
Something like the bolded text in the query to display the chosen values in the legend;
select null link, P_MONTH AS MONTH, SUM(CALLS) AS 'P1_WAREHOUSE' || 'P1_ANS_UNANS' || 'P1_PRODUCT'
from DATA.MAIN_DATA
WHERE WAREHOUSE = :P1_WAREHOUSE
AND ANS_UNANS = :P1_ANS_UNANS
AND PRODUCT = :P1_PRODUCT
GROUP BY P_MONTH
Any ideas/suggests?

Thanks Andy
I'm having some problems with applying this so it may be best if I show you how I've applied this code.
Here's an example of my data on a made up 'EMP' table;
ENAME     SAL     DEPTNO     DEPARTMENT
SMITH1     1871     345     DEPT1
SMITH2     1953     345     DEPT2
SMITH3     2239     345     DEPT3
SMITH4     492     345     DEPT4
SMITH5     2431     345     DEPT5
SMITH6     2331     345     DEPT6
SMITH7     1003     369     DEPT7
SMITH8     1688     370     DEPT8
SMITH9     2284     371     DEPT9
So I'm only using one table - 'EMP'
I've created 2 LOVs, 'DEPTNO' & 'DNAME'.
'DEPTNO' LOV has the values for the 'DEPTNO' field in the table.
'DNAME' LOV has the values for the 'DEPARTMENT' field in the table.
I then created a chart with the below SQL query as its source;
SELECT NULL LINK,ENAME LABEL,SAL VALUE
FROM EMP
WHERE (DEPTNO = :P1_DEPTNO OR :P1_DEPTNO = 0)
ORDER BY ENAME
The 'Chart Title' field under the 'Chart Attributes' tab has the below added;
Department - &P1_DNAME.
The COMPUTATION is as below;
SLECT NVL(DEPARTMENT, '-ALL-')
FROM EMP
WHERE DEPTNO = :P1_DEPTNO
Could you advise where I may be going wrong as I have the following errors;
1. The chart is working OK with the added '(DEPTNO = :P1_DEPTNO OR :P1_DEPTNO = 0)' clause - but I still get no results for '-ALL-'
2. I can't get the chart to display the current value in the legend - where exactly should I put this line - 'Department - &P1_DNAME.'
3. The Computation is stopping any data from showing in the chart

Similar Messages

  • Pass prompt values in a Webservice

    Hi there, my requirement is to get 'Input Values' from a Combo Box(Dropdown) and pass those values into the webservice and get the output.
    Here are the steps so far:
    1) Created a WebI Report(using WebI Rich Client). The report has a prompt called 'State'
    2) Published the report block as a web-service and copied the WSDL URL.
    3) Created a Combo-box(Dropdown) in Xcelsius and put 'State' values to output to a cell 'A1'
    4) Created a web-service connection in Xcelsius Data Manager, and used my WSDL URL. I am able to see that it has detected a prompt in my webservice in the Inputs area. There are two methods called:
    valueofPrompt
      and
      Index
    I am mapping the 'ValueofPrompt' to the same cell as the Combo-box output cell 'A1'
    5) Clicked preview and when i picked any state say 'Alabama' and hit refresh, i see that i get values for all states, not just Alabama. So looks like my dropdown value is not being passed to the webservice.
    Am i missing something? Any ideas where it might go wrong?
    Thanks,
    Kon

    Are you sure that the webi report is refreshing AND you're refreshing the connection? Try putting FALSE or 0 in the option 'GetLatestInstance' and TRUE in the refresh option.
    Try putting a loading status into a cell in the dashboard and mapping a spreadsheet component to this cell, so you can see what's going on. By seeing how long the connection is taking to load, you might be able to get an idea of whether or not the webi report is being refreshed.
    Lastly, have you considered fetching all states in the Webi report and instead using a filter to pick an individual state. This will be much faster.

  • How i can pass the value into 1 line

    Hi expert,
    how do i pass all the value for sales document flow item in one line?
    i'm using this function
    CALL FUNCTION 'RV_ORDER_FLOW_INFORMATION'
        EXPORTING
          aufbereitung  = '2'
          belegtyp      = i_del-vbtyp
          comwa         = l_comwa
          nachfolger    = ' '
          vorgaenger    = 'X'
          v_stufen      = '50'
        TABLES
          vbfa_tab      = lt_vbfa
        EXCEPTIONS
          no_vbfa       = 1
          no_vbuk_found = 2
          OTHERS        = 3.
    so now lt_vbfa already got data line by line....
    line 1 : contract : 00010 : 1000000 : 19,000.00
    line 2 : order     : 00010 : 2000000 : 10000.00
    line 3 : delivery : 00010 : 3000000 : 10000.00
    how i can pass the value into 1 line?
    for example :
    contract  | line     | amount     | Order     | line     | amount    | delivery   | line     | amount     |
    1000000 | 00010| 19,000.00 | 2000000 |00010 | 10000.00 | 3000000 | 00010 | 10000.00 |
    Edited by: anuar jusoh on Aug 17, 2009 4:02 AM

    Hi,
    What is requirement for passing the data in a single line ? Do you finally need to append the same in the internal table and pass it in the module ?
    You can create an internal table of type 1000 character and can loop the existing internal table. Then you can append the Work area in a single line and can finally append it to the table.
    DATA : ITAB type standard table of char1000.
    Loop at <existing table>.
    concatenate table work area wa_char100 into Itab_char_1000.
    endloop.
    APPEND itab_char_1000 into itab.
    Hope this helps.
    Thanks,
    Samantak.

  • How can I pass a value into a page fragment?

    How can I pass a value into a page fragment?
    I am implementing four search screens. And the only thing different about them will be their backing bean.
    So I’d like to do something like have four pages, each which retrieves its appropriate backing bean, sets that bean to a variable, and then includes a page fragment which contains the generic search page code (which will make use of that variable).
    The code in the four pages would be something like this:
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:c="http://java.sun.com/jsp/jstl/core">
    <jsp:directive.page contentType="text/html;charset=windows-1252"/>
    <c:set var="searchPageBackingBean"
    value="#{pageFlowScope.employeeSearchPageBean}"
    scope="page"/>
    <jsp:include page="./SearchPageBody.jsff"/>
    </jsp:root>
    At this point, what I’m seeing is that the fragment page, SearchPageBody.jsff, has no visibility of the searchPageBackingBean variable, either referencing it as #{pageFlowScope.searchPageBackingBean} or just #{searchPageBackingBean}

    The following will work, assuming you are needing to access a managed bean:
    Put this in the parent page:
    <c:set var="nameOfSearchPageBackingBean"
    value="employeeSearchPageBean"
    scope="request"/>
    Put this in the child, SearchPageBody.jsff:
    <c:set var="searchPageBean"
    value="#{pageFlowScope[nameOfSearchPageBackingBean]}"
    scope="page"/>

  • How to pass src value into img tag in ADF

    Hi,
    My Dev : 11.1.2.3.0
    How to pass row values into <img> tag.,I used the below code but it's taking empty.,
    I tried both ways like #{row.CdFilePath}   and   ${row.CdFilePath}
    <af:iterator var="row"
                      value="#{bindings.xxx.collectionModel}"
                     id="i2">
         <img src='/ShowImage?src=#{row.CdFilePath}' border='0' style="width:100px; height:100px; margin:5px;"/>
    </af:iterator>
    Please tell me any other option is there..
    Thanks

    This works if you use a normal table so I guess it should work here too.
    Are you sure the el #{row.CdFilePath} return something?
    Why don't you use the adf image tag <af:image source="/ShowImage?src=#{row.CdFilePath}".../> instead of the html img tag?
    Should the src property not be enclosed with " instead of your '?
    Timo

  • Need help on filtering out one record from a report and open in new page

    Hi I am new and embarrassed to write in the forum asking silly questions. Thing is I am learning all from scratch without help from anyone. I have created a database (have previous knowledge only from Access) and have managed to create a beautiful report from a search filter. This report lines up several records matching what I needed. Now, I want to make the whole report with hyperlinks to a detailed page on each of the records in the report. I have tried using the feature where one can make one column hyperlinked and redirect to a new page, where I am getting all the records again - instead of only getting the record I am clicking on. I have looked and looked in the forums without finding solution and I have tested and tried various methods without luck. I am suspecting that I need some sort of knowledge on how to write a select query with where conditions that can apply to filtering out a record from one report to get another detailed on only one object (i.e. record). :/ Stupid or what?

    Hrefna.
    What you need to look into is two things:
    1) The link you defined, needs to set additional attributes for the target page. In the "Column Link" box, you have set the link to "Page in this Application" and followed by the page number (let's say, Page 10). Below that, you should set an Item to an item on you target page (let's call that P10_PRODUCT_ID). This item should be the primary key of your detail table (on the targe page). You can select this item from the popup list. The Value of the item should be picked from a popup list as well, being the value from the record you clicked on. This should then transfer your selected item to your page. The URL will then have something like P10_PRODUCT_ID:5 at the end.
    2) On the target page, 10, you must change the query slightly, so that it adds a WHERE clause:
    WHERE PRODUCT_ID = :P10_PRODUCT_ID
    Now, you should be set.
    Hope this helps.
    Borkur

  • Error while passing prompt value in Column Formula

    Hi All,
    I have created a dashboard and added a dashboard prompt on that with a presentation variable named "promptdyn" that is basically showing bank names.
    Now i want to calculate the market value based on this prompt selection, so i edited the column formula as
    "WM FACT Sec"."MARKET VALUE" * EVALUATE('getBankBaseCurrencyValue(%2)' As Double,@{promptdyn},"Industry Type".INSTRUMENT_CCY)
    But it is throwing this error:
    \nQSError: 10058] A general error has occurred.
    \nQSError: 22051] The argument number 1 is not referenced in this evaluate expression: getBankBaseCurrencyValue(%2). (HY000)
    SQL Issued: SELECT "Industry Type".INDUSTRY_NAME, "Industry Type".INDUSTRY_TYPE, "WM FACT Sec"."MARKET VALUE" * EVALUATE('getBankBaseCurrencyValue(%2)' As Double,0,"Industry Type".INSTRUMENT_CCY) FROM WMAdHocReportingBMMSec
    I don't know what is wrong here.Here i tried to pass the value of the prompt to the function.
    Basically I have created a function in the database with two parameter as "bank name " and "Currency" and calling it with the help of evaluate function.
    How could we store the prompt value and pass it to some other function?
    Pls help me as it is urgent for me to solve.
    Thanks

    He Solved.
    Just i missed out to write %1,%2 in the evaluate function.
    But one thing i need to know that how can we store the value that is selected in a prompt say in dashboard prompt so that it can be used in query. Because i need to select a value first from the prompt and based on that i need to manipulate the values of the other request of the dashboard.
    Please Reply.
    Thanks

  • Passing request value into a query

    Hi,
    I was wondering whether it was possible to pass a request value into a report query in apex 3.2.
    I have a button with a submit value of "ALL" which when pressed i need to open up all the contents of a query as opposed to on those that have been completed.
    SELECT *
    FROM TABLE
    WHERE (STATUS = 'COMPLETE' OR :REQUEST = 'ALL')
    I was expecting this to return only completed records, unless the Button is pressed and then I want to return all records regardless of status.
    Can someone please advise whether this will work? At present it does not seem to recognise the request.
    Cheers,
    ca84

    query could not be parsed: select "ASCIDD" "ASCIDD", "TEMIDD1" "TEMIDD1", "NAME" "NAME", "LSTIDD1" "LSTIDD1", "ASCORDOPT"
    "ASCORDOPT", "ASCORD" "ASCORD", "TEMIDD2" "TEMIDD2", "TEMDES_COUNT" "TEMDES_COUNT" from ( /* Formatted on 2010/12/06
    15:23 (Formatter Plus v4.8.8) */ SELECT ascidd, temidd1, (SELECT temdes FROM lsttem WHERE temtyp = 'D' AND lsttem.temidd =
    temidd1) NAME, lstidd1, ascordopt,ascord,TEMIDD1 TEMIDD2, CASE (:REQUEST) WHEN 'COUNT' THEN
    LSTTEM_PKG_1.CountRecords(TEMIDD1) ELSE 0 END "TEMDES_COUNT" FROM lsttemasc WHERE lstidd1 = :p355_lstidd and exists
    (select 'y' from lsttem where bizidd1 = :P355_BIZIDD1 and lsttem.TEMIDD = lsttemasc.TEMIDD1) order by ascord;) apex$_rpt_src
    failed to parse SQL query: ORA-00911: invalid characterThe ";" looks very suspicious...
    And please:
    <li>Update your forum profile with a better handle than "user13453962"
    <li> DON'T post unrelated questions as follow-ups to existing threads. This issue is not connected to the OP.

  • How to pass prompt value to columns with formula?

    Hello guys
    I have a situation:
    I have a report with 1 column name 'product' and in this column it has a case statement like 'case when item is ('a','b','c','d') then 'Men' else 'women' end'
    Then I have created a dashboard prompt of the exact same column, and I defined the same case statement in the prompt's column formula as the same.. Then I tested the prompt and it is returning only 2 values 'men', 'women'..
    However, when putting the prompt and report on the same dashboard, the report is not accepting the prompt values..
    Then I set the presentation variable on the prompt and call it 'Product', then in the report I created a filter on 'product' column as equal to presentation variable 'product'--- I tried with and without single quotes.. So the filter itself looks like : case when ...... is equal to / is in @{product}
    However, when I then return back to the dashboard, I am getting the error:
    State: HY000. Code: 388918336. [NQODBC] [SQL_STATE: HY000] [nQSError: 10058] A general error has occurred. [nQSError: 27005] Unresolved column: "Product". (HY000)
    Could anyone help?
    Thanks

    Hola
    is possible that are you using a BINS agrupation into the Column Formula?
    if you form a CASE statement using a Bins agrupation, in the column Formula, this must be disabled to match statements between columns and DB Prompt
    if you are using a BINS agrupation to form the CASE statement, you have to delete the bins agrupation in the Column but keep the CASE statement
    Regards

  • Opening Dashboard Page in New Window While Passing Prompt Values

    Hi,
    Currently it is not possible to open a dashboard page in a new window AND have the prompt values from a prior page pass to this page. I see one or the other can be accomplished but not both. Is there a way this can be acheived somehow or is there a workaround for this?

    You are correct. The "Link or Image" object does not pass the dashboard prompt values, though it allows the destination dashboard to be opened up in a window.
    Here is a workaround.
    1) Place the link in a "Guided Nav. Link" object and set the destination dashboard and desired report. With the prompt set up correctly (i.e., dashboard scope, set to PV, destination report column filtered to receive the PV), the destination report will be filtered on the prompt as desired.
    2) I noticed (and maybe this is why you wish the "new window"), there is no "return" link on the destination report. To fix this, in the destination dashboard, add a Text object to the dashboard. In the properties, paste the code below and make sure to check off "Contains HTML markup." This will produce a "Return" button on the dashboard.
    <input type="button" value="Return" onclick="history.back();">
    Now, when the user selects the prompt and clicks on the link, the prompt is passed to your second dashboard. When the user wishes to return, he/she can click on the "Return" button and return to the primary dashboard.
    HTH,

  • Passing prompt value to a LiveOffice document

    Hi all,
    I've SAP BW Query as the data source having two prompts of one which is date, and I built a LiveOffice document connecting a WebI report. The prompt values in LiveOffice document are displayed as for ex : comp code : 2000 [0COMPCODE].[2000] and date as 10/0320 [0CALMONTH].[032010]. In case of Comp code I'm passing only 2000 removing the rest of the text and it works fine, but whereas when I modified date prompt in LO document like Comp code its throwing an error while refreshing.
    Getdocument Information Exception (Error  WIS : 10901). In details I can see that date is being passed 32010 instead of 032010 even though I tried to change the format of that particular cell.
    Any solution to this problem ?
    Thanks

    Hi Fred,
    The date format in BEX Query is mmyyyy and I'm trying to pass the same in LO but its going as myyyy, for ex : 032010 is passed as 32010.

  • Passing bind value into viewlink in uix

    Hi,
    Can anyone tell me if is it possible to passe a value for a where condition in viewlink with uix xml ?
    I've a view link with some query like :1 = VtfSecteurfamille.IDSECTEUR which source attribute TfSecteur.IDSECTEUR
    In uix page
    &lt;stackLayout&gt;
    &lt;contents childData="${bindings.TfSecteurView.rangeSet}"&gt;
    &lt;styledText text="${uix.current.Libelle}"/&gt;
    &lt;stackLayout&gt;
    &lt;contents childData="${bindings.VtfSecteurmarqueViewLink.rangeSet}" &gt;
    &lt;styledText text="${uix.current.Nommarque} ${uix.current.Idmarque} "/&gt;
    &lt;/contents&gt;
    &lt;/stackLayout&gt;
    &lt;/contents&gt;
    &lt;/stackLayout&gt;
    I want to passe to :1 a value

    Hi Ganesh,
    Please have a look at this thread on how to add 'ALL' as a value for the prompt.
    All values in parameter
    -Abhilash

  • Passing range-value into a parameter of a subreport

    Hello all
    I've a problem with passing a formula into a parameter of the subreport.
    I'm using a SAP BW query with a data range parameter. So I have to provide a range value first for executing this query.
    I'd like to execute the query with a data range between the last two weeks. For this purpose if created a formula with following code:
    [dateadd('d',-14,currentdate),currentdate]
    This means, the result is an array. And exactly this is the problem. Because Crystal Reports doesn't support an array as a result of a formula.
    Is there an other possibility for passing the array/data range to the parameter in the subreport?
    I'm using Crystal Reports for enterprise (v.14.0.2).
    Kind regards,
    Greg

    Thanks, kglad. I was wondering about that. I thought that
    putting a variable data type of :Number would have made it a
    number, but I never got an error in the debugger so I thought it
    was ok. I traced the data type and figured out it was actually a
    string and changed the line like follows which turned the string to
    an integer and made it work:
    var image01ClosedPosition:Number =
    parseInt(RootNode1.attributes.imageChangeX);

  • Passing JSP value into an SQL Query

    Hi,
    I am developing a site for a cruise ship company as part of a project. My problem is as follows . . .
    I have a page called cruiseReservation.jsp which passes the value of the selected cabin to the cruiseDetails.jsp page:
    href="CruiseDetails.jsp?cabin_id=cabinE105 " so . .
    cabinE105 was selected.
    my database table for the cabin is as follows:
    create table cabin (
    cruise_id number primary key,
    cabinE105 number,
    cabinD113 number,
    cabinC131 number,
    cabinB127 number,
    cabinA101 number,
    FOREIGN KEY(cruise_id)
    REFERENCES cruisedetails(cruise_id)
    In the cruise details page im running the following code to update the cabin tables cabinE105 value to 0:
    String cabin = request.getParameter("cabin_id");
    String setCabin = "update cabin set '"+cabin+'" = 0 where cruise_id = 1";
    What im trying to do is pass the value of the cabin into the update statement so it updates cabinE105 = 0 where cruise_id = 1.
    How do I dfo this as the above method is not working ??
    I would like any help on this PLEASE !!! THANKS !

    String cabinID = request.getParameter("cabin_id");
    PreparedStatement ps=connection.prepareStatement("update cabin set "+cabinID+"=? where cruise_id=?");
    ps.setInt(1,0);
    ps.setInt(2,0);
    ps.executeUpdate();
    .Regards
    -John-

  • Linking reports passing prompt values to detail report ?

    Hi,
    I am building a linked report in webintelligence on SAP universe which has prompts coming from BI variables.In the master report i have created a hyperlink column so that if user can select the hyperlink for each row.now if i select the hyperlink it should take me to the detail report by passing the prompt values.i want to pass the values to the prompts build in BI varaible.
    eg: master report
    Country  Product  Rev  City
    now here i want to select city and open the detail report by passing city values. i need the formula for the hyperlink  city. City is just a prompt in master report it is not object in my report.
    Thanks,

    Hi Try this code
    ="<a href='http://l1280:8080/businessobjects/enterprise115/desktoplaunch/opendoc/openDocument.jsp?&sDocName=Account&sType=wid&iDocID=5311&lsSAccountType="+[Account Type]+"'>"+[Account Type]+"</a>"
    Regards
    Prashant

Maybe you are looking for