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 ?

Similar Messages

  • 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

  • How to hold the value in List box.

    Hi All,
    On my screen painter Screen I am displaying the Sold to party and ship to party with thier address.
    I am also displaying the Shipping condition based on ship to party. To display the shipping condition i am using list box. Once the user enter the sold to party automatically all the field is going to populate in their respective fields. I am facing the problem that, The list box getting populated with shipping condition but once you choose the shipping condition and hit the enter the list box getting refreshed. I am using this code in PAI event. And I can Only use this in PAI.
    The Function i am using for list box is CALL FUNCTION 'VRM_SET_VALUES'.
    Pls suggest me how to hold the value in List box.
    Thanks,
    Rakesh

    Hi,
    Now i am using in PBO.
    the code below in in PBO.It is still not holding the value.
          if list[] is initial.
          perform SHP_COND.
          endif.
    form SHP_COND .
    *DATA: SHOP(80).
        clear : GT_VSBED, list.
        refresh : GT_VSBED, list.
         select vsbed
           from knvv AS K
           into table GT_VSBED
          where Kvkorg = vbak-vkorg  "Kkunnr = GV_STPH
          and K~vtweg = vbak-vtweg
          and K~spart = vbak-spart.
        select VSBED vtext
          from TVSBT
        into table list
        for all entries in GT_VSBED
        where spras = sy-langu
        and vsbed = GT_VSBED-VSBED.
    *break-point.
    NAME = 'SHP_CON'.
    CALL FUNCTION 'VRM_SET_VALUES'
      EXPORTING
        id                    = NAME
        values                = LIST[]
    EXCEPTIONS
       ID_ILLEGAL_NAME       = 1
       OTHERS                = 2
    IF sy-subrc <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
             WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    endform.                    " SHP_COND
    Thanks,
    Rakesh

  • How to search for multiple values with Bex Prompts

    Hi,
    I would like to know  if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know  how  to achieve?
    Thanks,
    Charvi.

    Hi Charvi,
    You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
    For Example, Ravi * would result you all employees with first name as Ravi
    You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
    Thanks
    Mallik

  • SQL Command code for multiple value string parameter

    Hi,
    I'm using crystal 2008 and there is a check box for multiple value  SQL Command  I need some help in writing the SQL Command code  for oracle (or sql server) for a multiple value STRING  parameter.
    Thanks in advance,
    Marilyn

    I could be wrong here, but I do not believe you can pass a multiple valued parameter to an SQL Command data source.  How I have gotten around this in the past is to put the "real" report into a subreport.  In the main report, create a formula field (basic syntax):
    formula = join({?parameter}, "|")
    Then, use this to pass the selected values to the subreport's parameter (call it {?sr-parm}).  The SQL Command in the subreport can then use that (MS SQL):
    select *
    from table
    where charindex(table.field, '{?sr-parm}') > 0
    HTH,
    Carl

  • 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

  • How to populate values in List Box in Adobe form

    Hi,
    How to populate values in List box in adobe forms?
    Thanks
    RB

    if you want to display a fixed values in the dropdown you can use list box ui and can specify values there
    or if u want to display values from the context node of the webdynpro
    1. Drag and drop a Value Help Drop-down List element from the Web Dynpro Library tab to the Body Pages pane.
    2. Drag and drop your node from the Data View tab onto it. This action binds the layout element to the corresponding node.
    with regards
    shanto aloor

  • How to get peoplepicker multiple value in text box?

    Hi All,
    How to get multiple selection people-picker value into text box while using InfoPath?
    Thanks in advance!

    Hi,
    According to your post, my understanding is that you wanted to get peoplepicker multiple value in text box.
    You can set the default value of the text box to:
    eval(eval(Person, 'concat(pc:DisplayName, "; ")'), "..")
    Or change XPath (advanced) to
    xdMath:Eval(xdMath:Eval(../my:group/pc:Person, 'concat(pc:DisplayName, "; ")'), "..")
    More information:
    Use Person/Group Picker in Infopath form to send multiple contacts to a SharePoint Workflow
    InfoPath Forms – Show Person/Group Picker Values in Text Box
    InfoPath Reference to Undeclared Namespace Prefix: ‘PC’
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Dynamic where clause for MULTIPLE values

    In the following of dynamic where clause?
    i have some somewhat different problem.
    Is a dynamic where clause for multiple values possible?
    If the inputvariable varCode1,varCode2,varCode3,varCode4 are 0 then show all id's otherwise filter the resultset on var1 and/or var2,and/or var3,and/or var4.
    Example table:
    create table t
    (d int,var int);
    insert into t values (1 ,1 );
    insert into t values (2 ,1 );
    insert into t values (3 ,2 );
    insert into t values (4 ,3 );
    insert into t values (5 ,4 );
    insert into t values (6 ,4 );
    insert into t values (7 ,4 );
    insert into t values (8 ,4 );
    insert into t values (9 ,5 );
    insert into t values (10, 6);
    insert into t values (11, 6);
    So what i want to change the where clause upon the value of the varCodes. If var1 and var are not 0 a "AND" should be used otherwise an "OR"
    select id
    from tst
    where var = DECODE( :varCode1, 0, var, :varCode1)
    or/and(?) DECODE( :varCode2, 0, var, :varCode2)
    or DECODE( :varCode3, 0, var, :varCode3)
    or DECODE( :varCode4, 0, var, :varCode4)

    Please turn off your Caps Lock
    and try this link
    Dynamic WHERE clause

  • How to set a default value for a drop down list box and then apply cascading based on the default value in Infopath 2010.

    Hello Everyone
    I have two drop downs. Both are coming from look up fields from two lists. i want to set a default value(first list item) for the first drop down list box and then apply cascading based on the default value for the next drop down list box. I found one article(http://www.bizsupportonline.net/infopath2010/display-first-item-drop-down-list-box-infopath-2010.htm)
    where in i can set a default value but i can't apply cascading based on that default value. Any suggestions would be highly appreciated.
    Thanks
    Ramanjulu Naidu N

    Hey Ramanjulu,
    Take a look at the below article which I believe will answer your question.
    http://basquang.wordpress.com/2010/03/29/cascading-drop-down-list-in-sharepoint-2010-using-infopath-2010/
    Daniel Christian (MCTS)

  • Missing values in list box in SM30 - interval defined for domain

    Hi Experts,
    I'm facing the following problem:
    Table maintenence view has been generated for a z-data table via transaction SE11. For one field list box has been set and even though the domain (SO_ESCAPE; standard) behind the field has (fixed) values they are not displayed (I cannot see them in the dropdown list) in trx SM30 when trying to maintain it .
    Important is that on "Value Range" tab of the domain we can see that interval is defined (satandard).
    In order to test this thing we copied the domain, assigned to a z-data ttpe, z-field, etc. If we remove the interval of the domain we can see the values in the list box in trx SM30.
    Is this standard (=normal behaviour of the system)? Can we display the values somehow for the satndard domain (with interval)?
    remark:
    Removing the lsit box setting we can see values (including the interval) using F4 in trx SM30.
    Thanks in advance,
    Csaba
    Edited by: Csaba Szommer on Jun 18, 2010 8:03 AM

    Hi Experts,
    I'm facing the following problem:
    Table maintenence view has been generated for a z-data table via transaction SE11. For one field list box has been set and even though the domain (SO_ESCAPE; standard) behind the field has (fixed) values they are not displayed (I cannot see them in the dropdown list) in trx SM30 when trying to maintain it .
    Important is that on "Value Range" tab of the domain we can see that interval is defined (satandard).
    In order to test this thing we copied the domain, assigned to a z-data ttpe, z-field, etc. If we remove the interval of the domain we can see the values in the list box in trx SM30.
    Is this standard (=normal behaviour of the system)? Can we display the values somehow for the satndard domain (with interval)?
    remark:
    Removing the lsit box setting we can see values (including the interval) using F4 in trx SM30.
    Thanks in advance,
    Csaba
    Edited by: Csaba Szommer on Jun 18, 2010 8:03 AM

  • Selecting Multiples Values from Multiselect Box

    Hi
    Here is my requirement ,
    Multiselect List Box should display Simulator_Type Values
    Simulator_Type Values           Values to search for in the column simulator type
    AC - small signal                              AC
    HB - Carrier                                    HB
    SP - Linear Noise                            SP - L
    SP - s parameters                           SP - s
    TR - Transient                               TR
    DC - operational point                     DC
    ET - Envelope Transient                  ET
    SSNA                                           SSNA
    [nothing]                                      nilDepending on the values selected in the multiselect values the data has to be dipayed where the value is in the simulator type column
    For Eg : AC - small signal is selected in the :p1_simulator_type multiselect box, The data where the word AC is in simulator_type column should display
    Examples of data in the simulator_Type column:
    SIMULATOR_TYPE
    ac, dcOp, Periodic Steady-pss
    AC - small signal
    AC Small Signal, Operating Point, Periodic Steady
    AC - small signal, SSNA
    DC - operational point
    ET - Envelope Transient
    So , here if i select AC - small signal from the multiselect list box , then the data where "AC" is there in simulator_type has to be displayed , in this case the data associated with
    ac, dcOp, Periodic Steady-pss
    AC - small signal
    AC Small Signal, Operating Point, Periodic Steady
    AC - small signal, SSNA
    has to be displayed...
    currently i have the report query below which is working but only when one simulator type is selected ....
    select
    * from   DW_RFA_JOBDATA
    where  RFA_SUBMIT_TIME >= :P1_START_DATE
    and RFA_SUBMIT_TIME < :P1_END_DATE    
    AND RFA_SIMULATOR_TYPE like '%'||:P1_SIMULATOR_TYPE||'%'Could any body please let me know how do i get data when multiple values are selected...
    Please let me know any further explanation is needed for the question
    Thank you
    Edited by: priyapinky on May 5, 2010 9:26 PM
    Edited by: priyapinky on May 5, 2010 9:54 PM
    Edited by: priyapinky on May 6, 2010 8:48 AM

    Hello,
    It seems to me like you don’t really understand how multi select items work in APEX. This type of items (we are talking about multi-select list, checkbox and the shuttle item) don’t really returned multiple values. They returned a single value that contains multiple segments, each include one valid option. By default, each segment is delimited with a colon (:). In your case it means that if you chose two values from your static LOV, the returned value will look similar to “HB:DC” (or any other combination of options). Now you need to work with this value.
    The way your RFA_SIMULATOR_TYPE column build, you can’t really work with the multi-select value, as you’ll never find a match to it, as this is actually an artificial value that only exist as a result of your multi-select.
    Regarding the new query you are trying, you wrote yourself that “i am getting the data with all the simulator_type select”, and that is correct. Where in this query you are using your filter (:P1_SIMULATOR_TYPE)? This is not the way to go.
    You need to break the compound value returned by your multi-select items, and work individually with each segment. You can do that in two ways. The simple one, as I already suggested, is to add another column that will contain only the code describing the simulator (similar to the returned value of the static LOV). In this case, using the instr() function you are checking if the column value is included in your filter (it’s a revered angle – you are actually checking if the single column value is included in your filter and not if the filter included in your column).
    The second option is a bit more complicated and it involves slicing the filter itself and dynamically build your query, using the “SQL Query (PL/SQL function body returning SQL query)” report option. In this case we are going to use the APEX built-in function APEX_UTIL.STRING_TO_TABLE(). The following is a very simple code example that you’ll need to adapt to your scenario:
    declare
      q      varchar2(4000);
      filter APEX_APPLICATION_GLOBAL.VC_ARR2;
    begin
      q := 'select * from emp where ';
      filter := apex_util.string_to_table('10:20');
      for i in 1..filter.count loop
        if i = 1 then
          q := q || 'deptno = ' || filter(i);
        else
          q := q || 'or deptno = ' || filter(i);
        end if;
      end loop;
      return q;
    end;In your case the parameter for the string_to_table is your filter item, and you can use LIKE as your comparison operator.
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Forthcoming book about APEX: Oracle Application Express 3.2 – The Essentials and More

  • Livecycle populate text field with multiple records from list box

    Can someone tell me how can I populate a text field from list box when I have multiple select.
    Here is example:
    List box consist: Hello
                             World.
    I want to see this in text field: Hello,World.
    Thanks!

    Hi Legro
    I don't know if I understand you correctly, but you can do something like this:
    ----------------- java script begin ---------------------------------
    //Reset text field
    TextField.rawValue = "";
    //loop through items in listbox
    for(i = 0; i < ListBox.length; i++)
              //if item selected
              if(ListBox.getItemState(i))
                        //check if Text field value if null
                        if (TextField.isNull)
                                  TextField.rawValue = ListBox.getDisplayItem(i);
                        else
                                  TextField.rawValue = TextField.rawValue + " " + ListBox.getDisplayItem(i);
    ----------------- java script end ---------------------------------
    I have attached an sample PDF so that you can see how it works!!
    Kind Regards
    Søren Høy Nielsen Dafolo A/S

  • Update multiple records from list box

    The idea is to present a list box to allow for the selection
    of multiple records. The records' primary key field having been set
    up as the value parameter in the list box. Then use a single update
    statement to update all selected records with a common value.
    I have tried to do this using code similar to:
    UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN ( @ListOfIntegers ) )
    Where the parameter is configured thus:
    <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]' Type="Int" />
    The idea is that the multiple selection listbox will return a
    comma separated list, which should l work nicely with the WHERE
    [column] IN ( .. ) syntax.
    Unfortunatley if more than one record is selected the
    Complier throws a type conversion error.
    I want to do this using Dreamweaver and C# on .NET.
    Any ideas how to proceed ?

    Are you wanting to update multiple records with the same
    information or
    different information for each record?
    Paul Whitham
    Certified Dreamweaver MX2004 Professional
    Adobe Community Expert - Dreamweaver
    Valleybiz Internet Design
    www.valleybiz.net
    "lyleja" <[email protected]> wrote in
    message
    news:f1cpe5$jj1$[email protected]..
    > The idea is to present a list box to allow for the
    selection of multiple
    > records. The records' primary key field having been set
    up as the value
    > parameter in the list box. Then use a single update
    statement to update
    > all
    > selected records with a common value.
    >
    > I have tried to do this using code similar to:
    >
    > UPDATE MyTable SET MyTable.MyColumn = 1 WHERE (
    MyTable.MyKeyField IN (
    > @ListOfIntegers ) )
    >
    > Where the parameter is configured thus:
    > <Parameter Name="@ListOfIntegers" Value='<%#
    ((Request.Form["MyListBox"]'
    > Type="Int" />
    >
    >
    > The idea is that the multiple selection listbox will
    return a comma
    > separated
    > list, which should l work nicely with the WHERE [column]
    IN ( .. ) syntax.
    >
    > Unfortunatley if more than one record is selected the
    Complier throws a
    > type
    > conversion error.
    >
    > I want to do this using Dreamweaver and C# on .NET.
    >
    >
    > Any ideas how to proceed ?
    >
    >
    >

  • Multiple Selections in List Box

    Hello all. I am new to the Adobe Family and especially PDF designing, so please bear with me. I have gone through the Help section, and did searches on here to find an answer but have not had luck. I need to make a list box that the user chooses multiple choices. As in some forms that have if you hold down the CTRL button you can choose multiple choices. During my searches I keep finding coding lines. I'm not sure how to do coding at all, I'm using the Designer 7 template forms where I can choose the icon, and then go over to Object, Value, etc. Is what I want to do even possible with Designer 7? If so, how can I make this work. If not, what program would I need to use? Thank you in advance for your help!

    When I look at either a list box or a drop-down list and look at the "Field" tab I do not see a "Allow Multiple Selection" checkbox. I am using designer version 7.0.041126.0. Is it not supported in this version or am I missing something.
    Thanks

Maybe you are looking for

  • How to Preloading a swf file in one application

    hello friends, How to preload a swf file in one application?? i have two panel in one panel i given login screen and In second panel there is one module i have to show this panel which is visible="false" when user logged in but i have to preload this

  • XSU insert into join view

    I've looked through a lot of the discussions here, and seen the same question I have: How do you use XSU to insert XML into master-detail structure? And the answer seems to be, "insert into a view". Could you give me example SQL for the type of view

  • Apprisal Document(Quick Criteria maintainance)

    Hi , I got requirement to create apprisal iview in portal i mapped my user to the backend user and it has apprisal documents but they are not visible in portal directly when open the iview instead they are comming when i go to "Quick Criteria maintai

  • Selectively update podcast subscriptions on iPod?

    I'm pretty sure this can't be done, but figured I'd check. I'd like different iPod-updating rules to apply to different podcast subsscriptions: each day, I'd like my iPod to keep only that day's daily news shows (deleting yesterday's), but more gener

  • Nothing in my iphone 4s will open. how can i fix this?

    my iphone4s apps, contacts, reminders, texts, internet, settings everthing will not open. as i click on icon to open it, it immediaelty closes. how can i fix this problem. before i had this problem, my facebook would not open. so i turned off my phon