Change from 4.5 to 5,1 with multiple select list boxes

Had a multiple select list box which worked fine in 4.5 i.e
          a comma seperated list would be passed to the corresponding set method
          in the bean. We switch to 5.1 and this no longer works any one know of
          the solution or a work around to the problem
          Hugh McBride
          [email protected]
          

Vladimir,
          I am using a JSP/Java Beans design where the name of the
          set
          method in the bean match the name of the ui component so when the form
          is submitted the method in the bean is automatically called. The method
          request is a workaround but one we wanted to avoid using
          Thanks
          Hugh McBride
          [email protected]
          Vladimir Andral wrote:
          > How are you getting the values? request.getParameter()?
          >
          > You should be using request.getParameterValues() if the parameter
          > has more than one value.
          >
          > Check out the documentation for the HttpServletRequest interface.
          >
          > --
          > Vlad
          >
          > Hugh McBride wrote in message <[email protected]>...
          > >Had a multiple select list box which worked fine in 4.5 i.e
          > >a comma seperated list would be passed to the corresponding set method
          > >in the bean. We switch to 5.1 and this no longer works any one know of
          > >the solution or a work around to the problem
          > >
          > >
          > >Hugh McBride
          > >[email protected]
          > >
          

Similar Messages

  • Selecting data from data base tables into itab with multiple select queries

    Hi all,
           i am dealing with a situation where in there is 3 DB tables in all say
              1. ITAB - ZTBL_MAIN.
              2. DB table - ZTBL_SUB1.
              3. DB table - ZTBL_SUB2.
    ZTBL_MAIN contains feilds from both tables 2 and 3 so to choose some records from ZTBL_SUB1 into the ITAB a select query has been written as below.
    SELECT * FROM ZTBL_SUB1 INTO CORRESPONDING FIELDS OF TABLE ZTBL_MAIN
        WHERE <condition>.
    now i also want some feilds in main for each record to be filled from the other DB table for which if i use another select query after the above one in my report prog. say..
    SELECT * FROM ZTBL_SUB2 INTO CORRESPONDING FIELDS OF TABLE ZTBL_MAIN
        WHERE <condition>.
    then all the previous records are going to be erased..Kindly let me know a way in which i can implement the above implementation.
    Thanks&Rgds,
    Naveen M

    hi,
        Ur suggestions solved the syntax error. However my intial problem was not solved i.e., using the statement
    SELECT * FROM ztbl_sub2 APPENDING CORRESPONDING FIELDS OF TABLE ztbl_main FOR ALL ENTRIES IN ztbl_main
         WHERE <field1> =  ztbl_main-<field1>.
    creates or appends some more entries into the itab thats all.. But that is not what i am trying to implement.
    As explained before the first select query would have filled certain fields for all records in ztbl_main from ztbl_sub1.
    Now in the second select query i want to fill other fields of ztbl_main for all the records already fetched using first select query by using my where condition.
    The above select query that was suggested only creates new records in the table ztab_main but does not fill the fields of the records as i expected.
    how do i fullfil my requirment..
    kindly help.
    thnks & Rgds,
    Naveen M

  • How do I change from sync to iTunes to sync with iCloud if I don't have my computer available to plug into itubes

    How do I change from sync to iTunes to sync with iCloud if I don't have my computer available to plug into itubes

    Hello Rsd841979,
    Thanks for using Apple Support Communities.
    It's not very clear to me what you're trying to accomplish with iCloud, but if you want to start backing up to iCloud, then you can follow the directions in the article below.  If this is not what you are trying to do, then please let me know what you're wanting to use iCloud with.
    iCloud: Back up your iOS device to iCloud
    Take care,
    Alex H.

  • How to select value from list with multiple selections ?

    HI,
    i have a list with multiple selections where i show email address retrieved from database.
    what i want to do is to send the selected email address to the invoiceedit.jsp.
    please look at the following code which gives you the better idea.
    <td class='smalltext'><select name="email" size="3" multiple="multiple">
       <% 
       Connection conn = null;
       Statement stmt = null;
       Statement stmt_contactperson = null;
       Statement stmt_address = null;
       try{
          conn = getREConnection();
           stmt = conn.createStatement();
       ResultSet rs = null;
       rs = stmt.executeQuery("SELECT PROPERTYID, VALUE FROM PROPERTIES WHERE ENTITYID="+ g_strGroupID+" AND NAME = 'invoice_default_email'");
       int numofrows = 0;
       while(rs.next())
               %>
       <option value="<%= rs.getString("VALUE") %>" selected="selected"> <%= rs.getString("VALUE")  %> </option>
        <%
           }//end of while
          %>
         </select>
        <a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&add=1"><font color="#000000">Add</font></a>
         <a href="invoiceedit.jsp?entityid=<%=g_strGroupID%>&email_to="><font color="#000000"> Edit</font></a> </td>thanks

    Use a form button instead of a link so that you can send it as a request parameter to the server. In the server side just use HttpServletRequest#getParameterValues() to obtain all values for the given parameter name. If you really need a link rather than a button, then use Javascript to submit the form on click of the link.
    That said, your design is bad. Java code belongs in Java classes, not in JSP files. Database access logic belongs in a DAO class. Business and controlling logic belongs in a Servlet class. Only presentation logic belongs in the JSP file. Avoid scriptlets as much as possible and use JSP EL and/or JSTL instead.

  • [svn:fx-trunk] 10943: Fix to dragging from List with multiple-selection

    Revision: 10943
    Author:   [email protected]
    Date:     2009-10-08 15:46:27 -0700 (Thu, 08 Oct 2009)
    Log Message:
    Fix to dragging from List with multiple-selection
    - The fix is to postpone the selection commit until we make sure the user has not started a drag gesture.
    - Exclude the dragEnabled, dropEnabled, dragMoveEnabled properties for DropDownList
    QE notes: None
    Doc notes: None
    Bugs: None
    Reviewer: Deepa
    Tests run: checkintests, mustella List, DropDownList
    Is noteworthy for integration: No
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/DropDownList.as
        flex/sdk/trunk/frameworks/projects/spark/src/spark/components/List.as

  • Multiple Select List does not Refresh with Dynamic Action

    All,
    Scenario:
    Using APEX 4.2.2, I have a Select List page item (P4_SPONSOR) set to allow multiple values which has a dynamic LOV to populate the list.  What I would like to do is highlight the display values based on another page item's value (P4_DRIVER_ID).  When I set the source of P4_SPONSOR to static text, such as a delimited string of 1:2:3:4, any display values where the return values are equal to the static text are highlighted when the page loads.
    Problem:
    The problem lies in trying to use a query as a source for P4_SPONSOR which is filtered based on the other page item, P4_DRIVER_ID.  For instance, my SQL Query (returning colon separated values) returns the same as the static text noted above.  In the query's WHERE clause, I specify that the driver's ID is equal to P4_DRIVER_ID:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    This, as I understand it, would necessitate a refresh of P4_SPONSOR whenever the value of P4_DRIVER_ID changes.  So, I have a Dynamic Action that does just that.  When executed on the page, I can see the P4_SPONSOR multiple select list actually refresh, but none of the display values become highlighted.
    Thoughts?
    Thanks,
    -Seth.

    Seth,
    A dynamic action refresh of your select list will refresh the list of values (this is what you are seeing), it will not refresh the value of the item itself.  In fact, it will remove any values that you had already selected.  To refresh the value you will need to add additional dynamic actions.
    Create another dynamic action with:
    Event: After Refresh
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    If this was a normal select list you could just create a Set Value action and use your query to set the value of the select list.  Since this is a multiple select list your will need to get your colon delimited value first and then use some javascript to set the values of your select list.
    Create an hidden page item name P4_SPONSOR_TEMP.
    Add a true action to your new dynamic action:
    Action: Set Value
    Set Type: SQL Statement
    SQL Statement:
    SELECT sponsor_id
    FROM sponsors_drivers_xref
    WHERE driver_id = :P4_DRIVER_ID;
    Page Items to Submit: P4_DRIVER_ID
    Selection Type: Item(s)
    Item(s): P4_SPONSOR_TEMP
    Add another true action to your new dynamic action:
    Action: Set Value
    Set Type: JavaScript Expression
    JavaScript Expression:
    $("#P4_SPONSOR_TEMP").val().split(":")
    Selection Type: Item(s)
    Item(s): P4_SPONSOR
    --Jeff

  • ApEx2: Many-to-many with checkboxes or multiple select list?

    Hello all together
    I have the following specification:
    * a table for tool users: tool_users(tu_id, tu_name)
    * a table for groups: groups(gr_id, gr_name)
    * a table for the many to many relationship of tool users and groups: tool_users_to_groups(tu2gr_id, tu2gr_tu_id, tu2gr_gr_id)
    I'd like to have some checkboxes or a multiple select list in my "add/edit group" form where I can select which users belong to this group. The same vice versa for users to specify which groups they belong to.
    edit user
    (general details)
    Has to the following groups:
    [X] Group 1
    [ ] Group 2
    [ ] Group 3
    [X] Group 4
    [ ] Group 5
    After submitting the checked values should be insert into the many-to-many relationship table.
    How can I do that?
    Thanks a lot for any help,
    Josh

    Thanks for your kind help.
    I'll have to learn PL/SQL if I want to go on with my work in ApEx in future, I see this too.
    But at the moment there are just a few problems I got and I should get a small application up and running as soon as possible, so I'd be really thankful for some newbie help.
    My problem is now:
    I have created the process for my form page with the following code:
    declare
    v_list varchar2(200);
    begin
    for r in (select tu2gr_gr_id id
    from tool_users_to_groups
    where tu2gr_tu_id = :P3_TU_ID)
    loop
    v_list := v_list ||r.id|| ':';
    end loop;
    :P3_GROUPS := v_list;
    end;
    Sadly the code does not seem to be executed. I have changed the name from :P3_GROUPS to :P3_GROUPS2 (which doesn't exist and I'd expect the application to crash when loading the page). I have set the process to a Before Header process. What could I have done wrong?

  • How can i display Value in Report which i select from Multiple select list

    Dear All,
    i am using multiple select List in form with report page.
    When i create new Entry with select Multiple value in Multiple Select List then in report Value display me in below format
    my SQL Query are
    select NAME D, CODE R from  COUNTRY_MAS WHERE ACTIVE_FLG ='Y' order by NAME
    AS:AI:AG:AM these are return value .i want to display NAME in report .
    How can i do this ?
    Thanks
    Edited by: Vedant on Apr 25, 2012 11:14 PM

    Short answer, use the apex_util.string_to_table to convert to a table; then you can either iterate through the table to generate a string of names, or accomplish the same with a bulk operation.
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_util.htm#CHDFEEJD
    Encapsulate all this within a pl/sql function.

  • Associating a process with a 'select list with submit'

    Hi,
    In a tabular form I have 2 'select list with submit'. If a row is selected in the tabular form I need the following functionality from each of the select lists:
    Once a value is selected from the list a process will get excuted which will update a column of the checked row in the database table with the selected value from the list.
    My question is,
    1. How can I associate an 'after submit process' with the 'select list with submit'?
    2. Can I store the selected value in a variable which I can pass as an input parameter to a PL/SQL body?
    Regards,
    AM

    Hi,
    Please see my requirement below.
    I have a 'select list with submit' say P1_Select in a Tabular form Page. I want to create an after submit process (PL/SQL Process) which will take the selected value from the select list as input parameter and perform an update function for the checked row with that value.
    I'm trying give a feel the procedure:
    CREATE OR REPLACE procedure "P_REJECT"
    (p_message IN VARCHAR2 default Null)
    is
    begin
    FOR ii IN 1 .. APEX_APPLICATION.G_F01.count
    LOOP
    UPDATE NI SET NI.STATUS_NI = 'WCONF', NI.NI_Message = p_MESSAGE
    WHERE NI.NI_REF = APEX_APPLICATION.G_F01(APEX_APPLICATION.G_F01(ii));
    END LOOP;
    end;
    As suggested by Flavio I created the conditional 'after submit' process where I'm making a call to the above procedure.
    1. I am not sure how to pass the selected value as a parameter to the proc.
    2. 'request = value, where the value is the string literal P1_SELECT'.... Could not really figure out the meaning of string literal P1_SELECT
    Regards,
    AM

  • Problems with customizing select lists and popup LOVs

    Hi
    I have 2 problems about select lists and popup LOVs.
    The first one is about a select list in a tabular form.
    It should be created with APEX_ITEM.SELECT_LIST_FROM_LOV or similar and take its values from a named LOV.
    This worked fine but now it should also have the possibility to enter a free value.
    I tried to accomplish that by creating a APEX_ITEM.POPUP_FROM_LOV, but there is a problem with the function that is called by the arrow icon right to the input field (for eg. genList_f11_5()).
    If the row is added by addRow, then it works fine, but if the row is is not empty
    then the function call is like genList_f11_$_row() and the input field gets no value, when a LOV option is selected.
    The other problem is about a select list which should have the possibility to enter a custom value and
    also there should be the possibility to select several values. I tried to implement this by a text area containing the selected values and a multiple select list, with an event handler in each option. The user could click options and they would be copied to the text area. The problem is that I couldn't make the event handler work in IE.
    I would appreciate any ideas about either of these problems.
    Tiina

    Hi,
    If you download application you can see source.
    I have not write any instructions, sorry.
    If you are on Apex 4 you can just load jQuery UI autocomplete library and take ideas from my app.
    If you download my sample in zip there is uncompressed htmldbQuery library.
    You can see that and take only function htmldbAutocomplete.
    Then check jQuery UI document
    http://jqueryui.com/demos/autocomplete/#method-search
    There is method search that you can use open list just by click of input.
    I hope this helps at start.
    Regards,
    Jari

  • Applescript list with multiple selections

    Hello guys, i have h big problem...
    i was trying the multiple selections part by the command list, but if i select 2- and more it does nothing (i'm using if x is y then *linebreake* else if ...)
    so i tried another way script:
    tell application "Finder"
      --get folders of me--
              set a to get name of folders of folder "Contents:Resources:Versionen" of (path to me) --in this folder i got folders named  {"0", "1", "2", "3", "4", "5", "6", "7", "8", "9"}--
              set b to choose from list a with prompt "Choose your Minecraft Version!" with multiple selections allowed
      --next step--
      count b
              set c to result
              repeat c times        --with this part i wanted to handle every selected folder as an individual to duplicate it somewere else
                        set ab to b * -1
      duplicate folder ab to folder (choose folder)
              end repeat
    end tell
    thanks for helping me

    The following script (tested under OS X 10.8.2) should do what you are asking for:
    tell application "Finder"
        set theSourceFolder to folder "Contents:Resources:Versionen" of (path to me)
        set theFolderNames to get name of folders of theSourceFolder
        set theChosenNames to choose from list theFolderNames with prompt "Choose your Minecraft Version!" with multiple selections allowed
        if result is false then return
        set theDestinationFolder to choose folder
        repeat with thisName in theChosenNames
            duplicate folder thisName of theSourceFolder to theDestinationFolder with replacing
        end repeat
    end tell
    Message was edited by: Pierre L.

  • Insert items from two different Multiple Select Lists into a single table

    I need help. I have a training tracking system that tracks the courses taken by employees.
    I have created two multiple select lists, one is SelectEmployees and the other is SelectCourses. I want to insert
    the selected item from those two multiple select lists into Training_Record table.
    Note, SelectEmployees" is from Employee table and SelectCourses is from Courses table. Those two table has no intersetion.
    Train_Record is the table that joins those two together.
    Please advice and your help is appreciate.

    Thank you for your help.
    I tried your code and changed the table/field name to my actual table/field name and the iitem name to actual item name.
    declare
    cursor c_Employees is
    select PERSONNEL_NEW.EMPLOYEEID from PERSONNEL_NEW where PERSONNEL_NEW.EMPLOYEEID in (:P15_SELECTEDEMP);
    cursor c_Courses is
    select COURSES.COURSE_ID from COURSES where COURSES.COURSE_ID in
    (:P15_SELECTEDCOUR);
    begin
    foreach :=r_employee in c_Employees loop
    foreach :=r_course in c_Courses loop
    insert
    into COPYOFTRAINREC ( EMPLOYEEID, COURSEID )
    values ( r_employee.EMPLOYEEID, r_course.COURSE_ID );
    end loop;
    end loop;
    end;
    I got error message as :
    ORA-06550: line 12, column 25: PLS-00103: Encountered the symbol "C_EMPLOYEES" when expecting one of the following: (
    Error
    OK

  • Trying to retrieve the editValue of a list box selection with multiple selections

    I have a requirement to display the text and the value of a multiple choice list box but as soon as there are multiple selections the value displayed is the rawValue.
    My code is something like this:
    verifSubTaskDescID.addItem(this.editValue);
    verifSubTaskDesc.addItem(this.rawValue);
    When "this" which is a list box with ["a","first"],["b","second"] is set to a or b it works perfectly, displaying "a" in the ID and "first" in the Desc as follows:
    a          first
    OR
    b          second
    but when I select both this list looks like this:
    first          first
    second     second
    Any ideas on how to preserve the letters without making the code too complex or hard to maintain??
    Thanks!!!

    Hi,
    you can use a for loop to get all selected values from a choice list.
    This could look like this.
    This sample script goes to the exie event of the choice list.
    It refers to the dataNode which holds the multiple values.
    The for loop the then extracts the selected values and their associated display items.
    var r = ""
    for i = 0 upto $.dataNode.nodes.length - 1 do
              r = Concat(r, $.dataNode.nodes.item(i).value, " ", $.getDisplayItem(i + 1) )
    endfor
    Textfield1 = r

  • How to write a javascript function on a report column with type select list

    I have a report with a select list column:
    HTMLDB_ITEM.SELECT_LIST_FROM_LOV(22, "tablename"."PRIMARY", 'PRIMARY').
    The value of primary can be null, yes, no. I want to write a javascript to achieve this: once the user changes one primary value to be yes, others with 'yes' will be changed to 'no' automatically.
    Could somebody help me on this.
    Thanks.
    Jen

    Thanks Patrick for your quick reply.
    I created a dynamic action with the following steps, but the dynamic action is not taking place.
    Event: After Refresh
    Selection Type: Region
    Region: Report 1 (my report name)
    Then in the true action
    Action: Execute Javascript SCode
    Code: showHighlight();
    I even tried to get an alert, but the dynamic action is not done at all. It seems the After refresh dynamic action is not working for a region.

  • How do i take one layer with multiple selections...

    how do i take one layer with multiple selections and make those selections their own layer?

    Yes sir. It w was really hard to explain. It is discontiguous segments that are separated by transparent areas. And I want those non transparent areas to be on their own layer. I have a photo shop file that has a bunch of buttons on them and they are on a transparent background. It is one layer. I want to select all the buttons and put them on their own layers. I can do this manually by selecting a button and cmd Just to a new layer, but when I have 200 buttons it is a daunting task.
    Sent by MailWise<http://www.mail-wise.com/installation/4> – Your emails, with style.

Maybe you are looking for

  • Superdrive is dead on MacBook Pro 17"

    MacBook Pro 17" 2.66 GHz Intel Core 2 Duo, running 10.6.8 My drive will not accept a CD or a DVD, it seems completely lifeless. I've tried rebooting with the click held dow

  • Adding a Textbox to a toolbar for a plug-in

    Just like the "Zoom" and "Find" toolbars have, how do I add this object to a custom toolbar? Or get the text from the existing ones? I'm using Acrobat 7.0.5 SDK and C++ Thanks, Tim James

  • Problem with Nokia 5530

    When I start the phone my "Contacts bar" on Home screen work, but when I enter menu and than turn back on Home screen my "Contact bar" freeze. Please help me. I reinstall phone's sofware from Nokia software updater but problem is still here. I am sor

  • Text kerning squeezed and uneditable for multiple fonts in 10.8.2

    Just updated to 10.8 (10.8.2).  Upon update many of my user added fonts are not kerning correctly.  In fact the letters appear on top of one another.  As a workaround, I tried to adjust the character spacing in the Inspector, but this does nothing. 

  • When I move my keynote presentations from my imac to my iPad they don't work

    when I move my keynote presentations from my imac to my iPad they don't work builds and movies don't work