Multiple value selection lists - Problem filtering

I'm builing a news application with publisher, and one of the fields is a multiple value selection list. We're filtering news stories to different pages based on the values. Problem is, I can't get the right content items to display. I did it no problem with a single selection box. The code I'm using is:
<pcs:foreach expr="folderByPath(folder, '../../Articles')" var="articles">
     <pcs:foreach expr="articles" var="art">
          <pcs:if expr="art.testkeyword == 'choice2'">
               </pcs:value>"><pcs:value expr="art.headline"></pcs:value></a><br />
          </pcs:if>
     </pcs:foreach>
</pcs:foreach>
So if 'choice2' is in a single select list, no problem. If it's part of a multiple select, I get nothing. I'm thinking I'm missing something really easy, like logic operators. But I couldn't find anything of help in the documentation

Hi,
Make use of contains function.
Syntax : contains(string1,string2) this returns true if string 1 has string 2
Usage
<pcs:if expr="contains(test,'A')">
</pcs:if>
** 'test' is the name of the multi select box
Edited by bharatkarthik at 06/22/2007 4:10 PM

Similar Messages

  • Crystal Token (Multiple Values Selection)

    Hello Experts,
    I am using a view for a custom report and have a problem with token i have defined. I would like to Token to display multiple value selection list so user can check the style he need.
    Ex: When i use select * from OITW the token displays item code selection list but when i am using view crystal does not display selection list. Does the tokens respect Views? Please advise.

    Hi Praneeth
    Try this
    code@select T1.V1_code, T1.V1_name FROM OADM T0 CROSS JOIN View1 T1
    It seems that putting a B1 table in there makes it work.  The same applies to selection from UDT's
    Hope this helps
    Rob

  • How to capture the multiple value in list box

    Hi forums,
           How to select the multiple values in list box and how to catch that values in OnInputProcessing.
    Regards,
    Ravi.

    Hi,
    A possible method is:
    Get all fields of the form
        CALL METHOD request->get_form_fields
          CHANGING
            fields = table_fields.
    loop over the fields
        LOOP AT table_fields INTO wa_fields.
    test the name of the field
          CASE wa_fields-name.
            WHEN 'test'.
    retrieve the value of the field
              test = wa_fields-value.
    endcase
    endloop.
    Eddy

  • Multiple values selection in Selector Component of Xcelsius

    I wanted to select Mutiple values in Selector Component?I dont want List Builder..I wanted to Select multiple values in Combo box or List box..
    Is there any way?
    Thanks in Advance..
    Mini

    Hi Mini,
    First of all check your version of Xcelsius ( open Xcelsius -> got to Help tab ->About Xcelsius check the version) if it is 5.3.3.0 then its ok...otherwise open the below link to download the HotFix-
    [https://websmp230.sap-ag.de/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/bobj_download/main.htm]
    the functionality is offered in latest Fix Pack only. After you install the fix, you will get an additional functionality of multiple series selection in Combo Box as well as in List Box.
    Add as many series as you want for  multiple value selection.
    Good Luck.

  • Multiple values selection implementation in VC

    Hi
    I am working with VC. We are trying to implement an multiple input selection.
    Our first option was to use the Help value wizard but i saw in this forums that is just possible with BI systems (we are using BAPI thus R/3 system).
    Now, we are trying to change de BAPI and put the input in tables. This goes well in R/3.
    Howeaver when we implement in VC this BAPI and fill the input table in the screen and send a submit message those table values are not sent.
    Any idea what is going on ? Is there a way to implement our requirement the multiple value selection using BAPI ?
    Best regards
    Carlos

    Carlos,
    As Marcel said it can be a lot of things. It is hard say. But I can tell from my experience that when you charge a BAPI in your source system you don’t grab this change in VC. You should try to save your BAPI under other name and re-import it to VC.
    Do you how to debug using SE73? This should help you also to follow your BAPI behaviour and also see if VC is really executing your BAPI.
    Regards,
    Gilson

  • BSP: multiple values selection in select-option

    Hi,
    Our customer requires multiple values selection in BSP pages as he is used to in standard SAP GUI.
    I found it's impossible in standard.
    Could it be possible to used javascript for this ... each select-option would have its own script that would pass table with selected values as parameter to HTTP request?
    thanks
    Juraj

    Of course this is possible, you have HTML in the frontend, so you can do as much as HTML allows you. If you know DHTML you can play with it and create almost every layout you want, but then you have to keep in mind that you will have to take care about everything behind, starting from conversions (input/output), formatting, validation and so on.

  • Select multiple values in report level filters

    Hi All,
    I have report level filters in my webi report and i would like to seect multiple values from each filters?
    is there any work around for this? your help is highly appreciated.
    Thanks,
    Ann

    Edit your Report in WebI. From the left side select the last Input Control Tab.
    Click on New. Click on the field for which you need this Filter and select Next.
    You will see Input Controls avaialble foir Single Values. Scroll Down. There you will see the Checkbox, List Box etc available for Multiple values. Click on one of them and click Next and Finish.

  • Search help multiple values selection problem

    Hello Friends,
    I am using FM f4_if_int_table_value_request FM to display multiple values on selection screen
    in AT-selection-screen on value request event.
    Multiple values are getting displayed perfectly .
    Then after that I am using DYNP_VALUES_UPDATE FM to return the values back to screen.
    But the problem is in the select-option field . It only picks the last value selected.
    I have a row:
    I EQ 'last value selected from F4 help screen''.
    Is there a way to update multiple rows in the select option selection screen field.
    Thanks.

    Hi Suhas,
    you may try the following:
    TABLES spfli.
    SELECT-OPTIONS: s_carrid FOR spfli-carrid.
    SELECTION-SCREEN: PUSHBUTTON /1(20) but1 USER-COMMAND carr.
    INITIALIZATION.
      but1 = 'Choose CARRID(s)'.
    AT SELECTION-SCREEN.
      CASE sy-ucomm.
        WHEN 'CARR'.
          TYPES: t_return_tab  TYPE ddshretval.
          TYPES: BEGIN OF ty_line,
            carrid   TYPE spfli-carrid,
            carrname TYPE scarr-carrname,
          END OF ty_line.
          DATA: it_list TYPE STANDARD TABLE OF ty_line,
                wa_return_tab TYPE t_return_tab,
                i_return_tab TYPE STANDARD TABLE OF t_return_tab,
                v_repid TYPE sy-repid,
                v_dynnr TYPE sy-dynnr.
          v_repid = sy-repid.
          v_dynnr = sy-dynnr.
          SELECT carrid carrname
          FROM scarr
          INTO TABLE it_list.
          IF sy-subrc = 0.
            CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
              EXPORTING
                retfield        = 'CARRID'
                dynpprog        = v_repid
                dynpnr          = v_dynnr
    *        dynprofield     = 'S_CARRID-LOW'
                value_org       = 'S'
                multiple_choice = 'X'
              TABLES
                value_tab       = it_list
                return_tab      = i_return_tab
              EXCEPTIONS
                parameter_error = 1
                no_values_found = 2
                OTHERS          = 3.
            IF sy-subrc = 0.
              s_carrid-sign = 'I'.
              s_carrid-option = 'EQ'.
              LOOP AT i_return_tab INTO wa_return_tab.
                s_carrid-low = wa_return_tab-fieldval.
                APPEND s_carrid.
              ENDLOOP.
              READ TABLE s_carrid INDEX 1.
            ENDIF.
          ENDIF.
      ENDCASE.
    What I have done is:
    - not linking the result of the F4 search to field S_CARRID-LOW
    - inserting this F4 search into event AT SELECTION SCREEN. This allows to see the select-options filled when its contents are actually populated.
    I hope this helps. Kind regards,
    Alvaro

  • Multiple value selection in List Box

    Hi Experts,
    In the selection screen of a report program, I have created a list box for countries as below:
    PARAMETERS p_contry TYPE zcountry AS LISTBOX VISIBLE LENGTH 20 OBLIGATORY. " Country
    While executing, I want to select multiple countries using CTRL key. is it possible if so then I can get it.
    Thanks
    Deep.

    Try with something like this:
    select-options s_contry for <your table name>-<field name > NO-INTERVALS.
    In the selection screen, you can see a button next to the select-option.
    If you click on that, you can enter multiple values, ranges, and values to exclude or ranges to exclude.
    Regards,
    ravi

  • Select List problem

    I have 3 select lists: the first two are with submit and the last one is just select list. Each list depends on the previous one.
    I have set null and default values for each list. The problem occurs when I first start the application, but after selecting an option in the first list all is fine and when I reset the fields everything works as it should.
    So the problem only occurs when the application is first launched....
    This is the error message:
    Error: ORA-01858: a non-numeric character was found where a numeric was expected performing List of Values query: "SELECT TESTTIME d, TESTTIME r FROM TESTSETUP WHERE TESTDATE = :P3_TESTDATE and TERM = :P3_TERM ".
    How can this be corrected?
    Any help would be greatly appreciated.
    Thank - Greg

    I have set null and default values for each list
    These values are not available in committed session state for the subsequent select lists to use.
    Solution: Create a OnLoad Before Header computation (conditional upon the value of the select list being null) to set it to whatever null/default value you want. This will "initialize" the value so that your dependent select lists can work properly.

  • Enhancing standard (single select)search help for Multiple value selection

    Hi,
    Standard search help for Business Partner (in cProjects) allows only single value selection for input fields. I want to make this multiple selection.
    Is there a way to do it.
    I used an OVS and built a similar search but its difficult to get the standard options like saving to personal value list etc in it.
    It would be good if there is a way to modify the standard search help to allow multiple selection. Any ideas??
    Appreciate your help,
    Thanks,
    Sri
    Edited by: Sri on Sep 9, 2010 8:50 PM
    Edited by: Sri on Sep 9, 2010 8:52 PM

    As far as I know you can't make a standard ABAP dictionary search help return multiple entries - where you get this sort of functionality the searches don't use the standard Elementary search help framework (e.g. organisational structure searches)
    Given that the WDA search help relies on these dictionary based searches, I'd think very much that you couldn't enhance it to return multiple. how you could even return multiple entries into a single UI element input field is also confusing to me.
    I'd suggest creating a freely programmed value help, it would certainly take quite some effort to recreate those personal value lists etc, but it could be done - I don't like OVS, but that just me.

  • SetSelectedValue for multiple values in List Box

    Hi,
    I want to set the selectedValue for multiple values in the List Box. If i use setSelectedValue for all the values, it just highlights the last one.
    Can anyone tell me how do i highlight multiple values in the List Box?
    Scenario:
    I have one screen where the List Box and "Go" button is placed. When i select multiple values in the list box and hit "Go" it should display what i have selected in the List Box.
    Note: List Box is generated dynamically.
    Thanks,
    Naresh V

    setSelectedValue as the name indicates will set one value and in your case since you are using it multiple times it would pick the last value.
    When the user selects multiple values from the list box and clicks on Go you can capture those values in the controller for processing. What are you trying to achieve by resetting all the selected values on the same listbox ?

  • Report with Select Lists problem

    Hi all,
    I have a sql report with this query:
    select
    'Hello World' Col1,
    apex_item.select_list_from_lov_xl(1,'Data 1','TEST_LOV') lov1,
    apex_item.select_list_from_lov_xl(1,'Data 2','TEST_LOV') lov2,
    apex_item.select_list_from_lov_xl(1,'Data 3','TEST_LOV') lov3,
    apex_item.select_list_from_lov_xl(1,'Data 4','TEST_LOV') lov4
    from dual
    Where TEST_LOV is a LOV that return 400 rows. The problem is that this report gives me an error:
    report error:
    ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    I am able to create a workarround using ajax, but I don't think this is the best way.
    Does anyone knows why this happens or any solution??
    Thanks,
    Alejandro.

    Hi,
    OK - My page is defined as:
    The report is based on the following SQL:
    select
    "EMPNO",
    "EMPNO" EMPNO_DISPLAY,
    "ENAME",
    "DEPTNO"
    from "#OWNER#"."EMP"The DEPTNO column is the one that I need a select list for. I have not used the APEX_ITEM package to handle this, but I expect it could be done that way as well.
    On the DEPTNO column, I have the following settings:
    Display As: Select List (query based LOV)
    Named LOV: -Select Named LOV-
    Display Extra Values: Yes
    Display Null: Yes
    List of values definition: SELECT NULL d, NULL r FROM DUAL
    Note that it is important that you use these exact settings.
    I have then created a new PL/SQL region on the page below the tabular form. The region should use the "No Template" template to keep it hidden from view. The Region Source is:
    DECLARE
    vSEP VARCHAR2(1);
    BEGIN
    vSEP := '';
    htp.p('&lt;script type="text/javascript"&gt;');
    htp.p('var sMaster = new Array(');
    FOR c IN (SELECT DNAME d, DEPTNO r FROM DEPT ORDER BY UPPER(DNAME))
    LOOP
      htp.p(vSEP || 'new Array (' || c.r|| ',"' || c.d|| '")');
      vSEP := ',';
    END LOOP;
    htp.p(')');
    htp.p('&lt;/script&gt;');
    END;This defines a hidden select list as a javascript array using the actual values from the DEPT table.
    I then have an HTML region underneath that, again using "No Template", that has the following as the Region Source:
    &lt;script type="text/javascript"&gt;
    function updateList(sChild)
    var o;
    var sChildValue = sChild.value;
    sChild.options.length = 0;
    o = new Option('-Select-', '');
    sChild.options.add(o);
    var k;
    for (k = 0; k &lt; sMaster.length; k++)
      o = new Option(sMaster[k][1], sMaster[k][0]);
      sChild.options.add(o);
    sChild.value = sChildValue;
    if (sChild.selectedIndex == -1)
      sChild.selectedIndex = 0;
    function updateLists()
    var lists = document.getElementsByName("f03");
    var k;
    var x;
    if (lists)
      for (k = 0; k &lt; lists.length; k++)
       updateList(lists[k]);
    updateLists();
    &lt;/script&gt;For this example, you will note that I am refering to "f03" (in the updateLists() function) - my DEPTNO column's SELECT tags have "f03" as their NAME attributes. This may need to be changed for your page.
    And that's it!
    When the page is loaded, the tabular form is constructed. Due to the settings I've applied to the DEPTNO column, each list will actually consist of a NULL entry and the value on the record (that's due to setting Null/Extra Values to Yes).
    Then, a hidden select list is constructed as a javascript array. And, finally, we loop through each of the "f03" items on the page, take a note of the value already there, replace the contents of the dummy select list with the contents of the array and then select the original value again.
    Andy

  • CV04N, classification fields w/multiple values be listed on results screen?

    When using CV04N to search for document info records, I have a classification field that has multiple values.  The search results screen only displays the first value of the multiple values.  Is there a way to display all of the values that are selected on the search results screen?

    Hi Heidi,
    Please note that this is the standard display beahvior in transaction CV04N. Unfortunatly it is not possible to display all saved values of a multiple value characteristic. Therefore only the first value is displayed. As only the first value of the characteristic is displayed also the filter functionality doesn't not display a document if you enter the second or third value.
    Best regards,
    Christoph
    P.S.: Please reward points for useful information.

  • E-recrutiing Selection List Problem

    Hi,
    I am using E-Recruiting version 3, service pack 13 and I am having problems with the Selection List on the Requesting Person page.
    When I log in as a Requesitng Person and select the "Selection List" link I am presented with an empty table. But the Requesting Person has raised Requisitions that have been approved and appicants have applied. There are also questionnaires waiting to be completed.
    Does anyone have any suggestions as to why this doesn't work?
    Thanks,
    Jon

    Hi Sebastian,
    Nice to know tht your solution for the above problem is working fine. I got the similar problem now. I could see the entries in the selection list in the requester page for the first time and also assessed a questionnaire from there (requester page's selection list) and the ranking results are also displayed in recruiter's page.
    But when I re-test it, I found no entries in it from tht time. I have cross checked all ur replies above, every thing is fine, I created another requester page and tried many times, from tht minute on wards, every requester's page has empty selection list. I did not manke any changes any where but still the selection list is empty after testing once.
    Pls help me with a solution to my problem.
    Thanks & Regards,
    Sudheer Kumar P.

Maybe you are looking for