Problem in multiple selections in a jList

I have two jLists. Now I have to select some items from one jlist and have to transfer in the other one. But while trying to do it in the runtime I am getting some unexpected runtime errors including "Exception occurred during event dispatching". When I try to transfer only one item it works fine but shows problem in multiple selections. Pleast give your suggestions.

[_First suggestion_|http://catb.org/~esr/faqs/smart-questions.html]
[_Second suggestion_|http://mindprod.com/jgloss/sscce.html]
db

Similar Messages

  • Problem with Multiple selection option

    Hi all,
    I am working on a report, when I execute the report and the selection screen comes up, there I need to enter 5 different employee name so I am trying to use "multiple selection" option but as soon as I hit that "Yellow arrow" in front of employee name field .. I saw the output first and when I go one screen back I get that screen where I can enter the names. So can you please help me with this.
    Thanks,
    Rajeev

    Hi,
    I have written the following code, I guess the problem is in
    GD_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = GD_REPID
    DATA: FIELDCATALOG TYPE SLIS_T_FIELDCAT_ALV WITH HEADER LINE,
          GD_TAB_GROUP TYPE SLIS_T_SP_GROUP_ALV,
          GD_LAYOUT    TYPE SLIS_LAYOUT_ALV,
          GD_REPID     LIKE SY-REPID.
    FORM DISPLAY_ALV_REPORT .
      GD_REPID = SY-REPID.
      CALL FUNCTION 'REUSE_ALV_GRID_DISPLAY'
        EXPORTING
          I_CALLBACK_PROGRAM     = GD_REPID
          I_CALLBACK_TOP_OF_PAGE = 'TOP-OF-PAGE'
          IS_LAYOUT              = GD_LAYOUT
          IT_FIELDCAT            = FIELDCATALOG[]
          I_SAVE                 = 'A'
        TABLES
          T_OUTTAB               = IT_tab
        EXCEPTIONS
          PROGRAM_ERROR          = 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.                    " DISPLAY_ALV_REPORTcode}
    Thanks,
    Rajeev

  • Problem in multiple selection in result page.

    Hi all ,
    My requirement is to create a search and result page and in result page i need to add two buttons for delete and create new, the delete and create new is working fine for single selection mode, but for multiple selection the create new is not working , i added the following code in the do_prepare_output.
    typed_context->result->set_selection_mode(
            iv_selection_mode = cl_bsp_wd_context_node_tv=>selmode_multi ).
    When i click on new all fields are in non editable mode and have text as"BRANCHID is not bound".

    Hi Raghu,
    After selecting the multiple records you are trying to click new button right.
    Are you displaying records or orders(like service ,sales,contracts,contacts,..etc ) in result view??
    Can you please elaborate the what you are displaying in result view.
    Regards,
    Rajya lakshmi ch

  • After upgrade to Muse CC 2014 i have problem with multiple selection. SHIFT dont work?

    anyone with same problem on Mac OSX 10.9.3?
    THX for help.

    Ok, so far we have three reports of this (from Lum1r, aaron and catfordboyjohn). You're all using Macs.
    Could you each please let us know the exact Mac and Keyboard you're using?
    1) Go To "About This Mac" in the Apple Menu
    2) Click "More Info..."
    3) Click "System Report"
    4) Copy and paste the "Model Identifier" from the "Hardware Overview" display.
    It should be something like:  Model Identifier: MacBookPro10,1
    What keyboard are you using? Is it a standard Apple USB connected keyboard?
    Do you using any "accessibility" utilities or OS settings that may alter the behavior of the keyboard?
    Thanks for your help as we work to figure this out.

  • Switched from Samsung Note 2 to iphone 6. Faced Difficulties while sending message. [1]Multiple Selection of receipients is not available. Eg. If I click plus, it shows me all the contacts but i cannot select multiple contacts using checkbox

    Phone : IPhone 6
    OS : 8.1
    Problem Statement : Multiple Selection of Recipients while drafting New Message in SMS.
    Expected Solution : Checkbox should have been provided to select multiple contacts using one screen

    Thanks for the reply.. I also tried that way.. I face couple of issues
    1) I could not find an option of saving a Draft Message
    2) After multiple recipients(I have selected 12 recipients) in "TO" section, if I type a word in "TO" such as "Pre", it shows me all the contacts containing "Pre"  but I cannot select the last contact incase there are more than 20 contacts coz I am unable to scroll down till the end.. If I do so.. I cannot select coz screen scrolls up automatically..
    Pls try ... If required I will insert video

  • Holding shift key down for multiple selection of objects ?

    Possibly me - but latest release of muse on my mac running OSx 10.8.5 now holding down the shift key and clicking doesn't seem to allow me to multiple select objects- works fine in illustrator and Indd , cant see a preferences check anywhere that i have missed - am I the only one with this issue ?

    catfordboyjohn, please join the discussion of this topic on this thread <Re: After upgrade to Muse CC 2014 i have problem with multiple selection. SHIFT dont work?>. Thanks.

  • Managing multiple selections using listModel......

    Hey,
    Im a newbie to java can anyone give me a pointer or two as to how I would go about removing multiple selections from a JList using listModel??
    Any help would be great.
    -Ben

    Why not try using the removeSelectionInterval(int,int) method of the JList itself? It should be fairly obvious as to how to proceed with this (i.e. stepping through the list element at a time, deselecting as necessary).
    I'm watching this topic if you need further help!

  • Multiple-selection JList

    here is my another problem:
    how to retrieve the data (tables, columns) from access database to the JList? i already success connected database to the jdbc-odbc bridge...after got the all column names (JList2) from selected table (JList1), i would like to select the certain column name by clicking the ( > , <, >>, << jbutton1, 2, 3, 4 ) to the another JList (JList3) because not all the column is useful to use to analyse. i think i need to use multiple selection JList but i don't know how to start because i am new to java.
    thx!

    Usually data from a database would be stored in a JTable as it already provide support for multiple rows and columns:
    http://java.sun.com/docs/books/tutorial/uiswing/components/table.html
    Also, with JDK1.3 there is some sample code of using a JTable with a database. I'm not sure if the code actually runs, but at least you can look at the source to see the steps involved:
    jdk1.3\demo\jfc\TableExample\src>

  • Data template multiple selection problem

    Hi all,
    I have a problem with the Multiple Selection on the BI Publisher using data templates. One of my parameters is called p_application, this parameter is a integer/number and its values come from a list of values.
    I'm getting the error "....invalid number". I think the data template is not understanding that this parameter have multiple selection.
    Can you help me?
    here is my data template
    <dataTemplate name="user_reg" dataSourceRef="Thomson_Live_ EDC_Environment">
    <properties>
    <property name="include_parameters" value="false"/>
    <property name="include_null_Element" value="false"/>
    <property name="include_rowsettag" value="false"/>
    <property name="scalable_mode" value="on"/>
    <property name="db_fetch_size" value="20"/>
    <property name="scalable_mode" value="on"/>
    </properties>
    <parameters>
    <parameter name="p_customer" dataType="string" include_in_output="false"/>
    <parameter name="p_application" dataType="integer" include_in_output="false"/>
    <parameter name="p_start_date" dataType="date" include_in_output="false"/>
    <parameter name="p_final_date" dataType="date" include_in_output="false"/>
    <parameter name="p_staff_account" dataType="string" include_in_output="false"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[
    select COUNT(DISTINCT TRUNC(a.TIMESTAMP)) days_logged
    ,COUNT(a.USER_ID) logins
    ,max(a.TIMESTAMP) last_access
    ,a.application_id application_id
    ,a.user_id user_id
    from user_history_log a,
    idweb_user b,
    idweb_customer c
    where to_date(to_char(a.timestamp,'dd-mm-rrrr'),'dd-mm-rrrr') between to_date(:p_start_date,'dd-mm-rrrr') and to_date(:p_final_date,'dd-mm-rrrr')
    and a.user_id = b.user_id
    and b.customer_key = c.customer_key
    and c.staff_account = :p_staff_account
    and ('0' in (:p_customer) or b.customer_key in (:p_customer))
    and (0 in (:p_application) or a.application_id in (:p_application))
    group by a.application_id, a.user_id ]]>
    </sqlStatement>
    <sqlStatement name="Q2">
    <![CDATA[
    SELECT IDCU.CUSTOMER_NAME "Customer name"
    ,PCAP.APPLICATION_NAME "Application name"
    ,IDUS.FIRST_NAME "First name"
    ,IDUS.LAST_NAME "Last name"
    ,IDUS.USER_NAME "Username"
    ,IDUS.EMAIL_ADDRESS "Email address"
    ,IDUS.ROLE "Job Role"
    ,IDUS.AREA "Job Area"
    ,IDUS.DEPARTMENT "Specific Job Area"
    ,IDUS.CITY "City"
    ,IDUS.US_STATE "State"
    ,IDUS.COUNTRY "Country"
    ,SALE.TERRITORY_NAME "Territory/GAM"
    ,BUUN.BUSINESS_UNIT_NAME "SBU"
    ,to_char(IDUS.REGISTRATION_DATE,'dd-mm-yyyy') "Registration date"
    ,to_char(PCCA.EXPIRY_DATE,'dd-mm-yyyy') "Expiry date"
    ,DECODE(PCUA.DISABLED,'Y','Disabled','Enabled') "Status"
    ,pcua.application_id application_id
    ,pcua.user_id user_id
    FROM PC_USER_APPLICATION PCUA
    ,PC_CUSTOMER_APPLICATION PCCA
    ,IDWEB_USER IDUS
    ,IDWEB_CUSTOMER IDCU
    ,sales_territory SALE
    ,business_unit BUUN
    ,PC_APPLICATION PCAP
    WHERE BUUN.BUSINESS_UNIT_ID(+) = IDCU.SBU_ID
    AND SALE.TERRITORY_ID(+) = IDCU.TERRITORY_ID
    AND IDCU.CUSTOMER_KEY = IDUS.CUSTOMER_KEY
    AND IDUS.USER_ID = PCUA.USER_ID
    AND PCCA.CUSTOMER_KEY = IDCU.CUSTOMER_KEY
    AND PCCA.APPLICATION_ID = PCAP.APPLICATION_ID
    AND PCAP.APPLICATION_ID = PCUA.APPLICATION_ID
    AND NVL(IDUS.DISABLED,'N') = 'N'
    AND IDCU.STAFF_ACCOUNT = :p_staff_account
    AND ('0' in (:p_customer) or IDCU.CUSTOMER_KEY in (:p_customer))
    AND (0 in (:p_application) or pcap.application_id in (:p_application))
    ORDER BY IDCU.CUSTOMER_NAME, PCAP.APPLICATION_NAME, IDUS.USER_NAME ]]>
    </sqlStatement>
    <sqlStatement name="Q3">
    <![CDATA[
    select COUNT(a.TIMESTAMP) "Number of Turnaways Kickout",
    MAX(a.timestamp) "Last Turnaway Kickout",
    a.application_id,
    a.user_id
    from tpharma_user.user_refused a,
    idweb_user i
    where to_date(to_char(a.timestamp,'dd-mm-rrrr'),'dd-mm-rrrr') between to_date(:p_start_date,'dd-mm-rrrr') and to_date(:p_final_date,'dd-mm-rrrr')
    and (0 in (:p_application) or a.application_id in (:p_application))
    and a.user_id = i.user_id
    and ('0' in (:p_customer) or i.customer_key in (:p_customer))
    group by a.application_id, a.user_id ]]>
    </sqlStatement>
    <link name="ruser3" parentQuery="Q1" parentColumn="user_id" childQuery="Q3" childColumn="user_id(+)" condition="="/>
    <link name="rapp3" parentQuery="Q1" parentColumn="application_id" childQuery="Q3" childColumn="application_id(+)" condition="="/>
    <link name="ruser1" parentQuery="Q1" parentColumn="user_id" childQuery="Q2" childColumn="user_id" condition="="/>
    <link name="rapp1" parentQuery="Q1" parentColumn="application_id" childQuery="Q2" childColumn="application_id" condition="="/>
    </dataQuery>
    <dataStructure>
    <group name="G_totals1" source="Q1">
    <element name="days_logged" value="days_logged"/>
    <element name="logins" value="logins"/>
    <element name="last_access" value="last_access"/>
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    <group name="G_main" source="Q2">
    <element name="Customer name" value="Customer name">
    <element name="Application name" value="Application name">
    <element name="First name" value="First name">
    <element name="Last name" value="Last name">
    <element name="Username" value="Username">
    <element name="Email address" value="Email address">
    <element name="Job Role" value="Job Role">
    <element name="Job Area" value="Job Area">
    <element name="Specific Job Area" value="Specific Job Area">
    <element name="City" value="City">
    <element name="State" value="State">
    <element name="Country" value="Country">
    <element name="Territory/GAM" value="Territory/GAM">
    <element name="SBU" value="SBU">
    <element name="Registration date" value="Registration date">
    <element name="Expiry date" value="Expiry date">
    <element name="Status" value="Status">
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    <group name="G_main" source="Q3">
    <element name="Number of Turnaways Kickout" value="Number of Turnaways Kickout"/>
    <element name="Last Turnaway Kickout" value="Last Turnaway Kickout"/>
    <element name="application_id" value="application_id"/>
    <element name="user_id" value="user_id"/>
    </group>
    </dataStructure>
    </dataTemplate>
    on the XDO file, the parameters are:
    <parameters>
    <parameter id="p_customer" defaultValue="8c3ff6ad5eh5c8" dataType="xsd:string">
    <select label="Customer: " valueSet="lv_customer" multiple="true" all="false" allValue="lov"/>
    </parameter>
    <parameter id="p_application" defaultValue="1" dataType="xsd:integer">
    <select label="Application: " valueSet="LV_application" multiple="true" all="false" allValue="lov"/>
    </parameter>
    <parameter id="p_start_date" defaultValue="{$SYSDATE()$}" dataType="xsd:date">
    <date label="Usage occurs on or after (dd-mm-yyyy):" size="11" format="dd-MM-yyyy" minValue="01-06-1950" maxValue="01-06-2100"/>
    </parameter>
    <parameter id="p_final_date" defaultValue="{$SYSDATE()$}" dataType="xsd:date">
    <date label="Usage occurs on or before (dd-mm-yyyy):" size="11" format="dd-MM-yyyy" minValue="01-06-1950" maxValue="01-06-2100"/>
    </parameter>
    <parameter id="p_staff_account" defaultValue="Y">
    <select label="Staff Accout: " valueSet="lv_staff_account" multiple="false" all="false" allValue="null"/>
    </parameter>
    </parameters>
    Thank you,
    Marcelo Cure
    Oracle Developer
    [email protected]
    www.ilegra.com
    Edited by: user11307652 on 09/03/2010 05:21
    Edited by: user11307652 on 09/03/2010 06:15

    I have a similar problem where i cannot use the parameter with comma separated values in the parameter.
    my report definition is as below.
    <dataTemplate name="COMLTRDATA" description="Data for the COMLTR letters" dataSourceRef="PRISM">
                        <parameters>
                             <parameter name="secondary_sequence" dataType="number" include_in_output="false"/>
                        </parameters>
                        <dataQuery>
                             <sqlStatement name="Q1">
                                  <![CDATA[select     PR_LETTER_MASTER.LETTER_ID as LETTER_ID,
         to_char(PR_LETTER_MASTER.LETTER_DATE,'FMMonth DD, RRRR') as LETTER_DATE,
         PR_LETTER_MASTER.LETTER_NAME as LETTER_NAME,
         PR_LETTER_MASTER.ADDRESS_TYPE as ADDRESS_TYPE,
         PR_LETTER_MASTER.REVIEWED_FIRM_NUMBER as REVIEWED_FIRM_NUMBER,
         PR_LETTER_MASTER.REVIEWED_FIRM_NAME as REVIEWED_FIRM_NAME,
         PR_LETTER_MASTER.REVIEWED_FIRM_TYPE as REVIEWED_FIRM_TYPE,
         PR_LETTER_MASTER.REVIEWING_FIRM_NUMBER as REVIEWING_FIRM_NUMBER,
         PR_LETTER_MASTER.REVIEW_NUMBER as REVIEW_NUMBER,
             PR_LETTER_MASTER.SALUTATION as SALUTATION,
             PR_LETTER_MASTER.SIGNATURE_EMAIL_ID as SIGNATURE_EMAIL_ID,
             PR_LETTER_MASTER.SIGNATURE_TITLE as SIGNATURE_TITLE,
         PR_LETTER_MASTER.REVIEW_STATUS as REVIEW_STATUS,
         to_char(PR_LETTER_MASTER.REVIEW_COMMENCEMENT_DATE,'FMMonth DD, RRRR') as REVIEW_COMMENCEMENT_DATE,
         to_char(PR_LETTER_MASTER.REVIEW_DUE_DATE,'FMMonth DD, RRRR') as REVIEW_DUE_DATE,
         PR_LETTER_MASTER.REVIEW_YEAR as REVIEW_YEAR,
         PR_LETTER_MASTER.REVIEW_PROGRAM as REVIEW_PROGRAM,
             PR_LETTER_MASTER.REVIEW_TYPE as REVIEW_TYPE,
             PR_LETTER_MASTER.TEAM_CAPT_FIRM_NAME as TEAM_CAPT_FIRM_NAME,
         PR_LETTER_MASTER.PRIOR_REVIEW_NUMBER as PRIOR_REVIEW_NUMBER,
         PR_LETTER_MASTER.MNGPTR_MEMBER_NUMBER as MNGPTR_MEMBER_NUMBER,
         PR_LETTER_MASTER.FIRST_NAME as FIRST_NAME,
         PR_LETTER_MASTER.MIDDLE_INITIAL as MIDDLE_INITIAL,
         PR_LETTER_MASTER.LAST_NAME as LAST_NAME,
         PR_LETTER_MASTER.ADDRESS_LINE1 as ADDRESS_LINE1,
         PR_LETTER_MASTER.ADDRESS_LINE2 as ADDRESS_LINE2,
         PR_LETTER_MASTER.ADDRESS_LINE3 as ADDRESS_LINE3,
         PR_LETTER_MASTER.CITY as CITY,
         PR_LETTER_MASTER.STATE as STATE,
         PR_LETTER_MASTER.ZIP as ZIP,
         PR_LETTER_MASTER.ZIP_PLUS as ZIP_PLUS,
         PR_LETTER_MASTER.DELIVERY_EMAIL_ID as DELIVERY_EMAIL_ID,
         PR_LETTER_MASTER.SIGNATURE_TYPE as SIGNATURE_TYPE,
         PR_LETTER_MASTER.SIGNATURE_NAME as SIGNATURE_NAME,
         PR_LETTER_MASTER.TEAM_CAPT_MEMBER_NUMBER as TEAM_CAPT_MEMBER_NUMBER,
         PR_LETTER_MASTER.SIGNATURE_PHONE_NUMBER as SIGNATURE_PHONE_NUMBER,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE1 as LAST_LETTER_SENT_DATE1,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE2 as LAST_LETTER_SENT_DATE2,
         PR_LETTER_MASTER.LAST_LETTER_SENT_DATE3 as LAST_LETTER_SENT_DATE3,
        to_char(PR_LETTER_MASTER.EXIT_CONFERENCE_DATE,'FMMonth DD, RRRR') as EXIT_CONFERENCE_DATE,
         PR_LETTER_MASTER.REVIEW_TAX_SEASON as REVIEW_TAX_SEASON,
             PR_LETTER_MASTER.STATE_SOCIETY_NUM as STATE_SOCIETY_NUM,
             PR_LETTER_MASTER.STATE_SOCIETY_NAME as STATE_SOCIETY_NAME,
         PR_LETTER_MASTER.SECONDARY_LETTER_SEQUENCE as SECONDARY_LETTER_SEQUENCE,
         PR_LETTER_MASTER.CREATION_DATE as CREATION_DATE,
         PR_LETTER_MASTER.STATE_CODE as STATE_CODE ,
             PR_LETTER_MASTER.DELIVERY_EMAIL_ID as DELIVERY_EMAIL_ID,
             PR_LETTER_MASTER.TEAM_CAPT_FIRST_NAME as TEAM_CAPT_FIRST_NAME,
             PR_LETTER_MASTER.TEAM_CAPT_LAST_NAME as TEAM_CAPT_LAST_NAME,
             to_char(PR_LETTER_MASTER.DT_RAB_PRESENTATION,'FMMonth DD, RRRR') as DT_RAB_PRESENTATION,
             PR_LETTER_MASTER.RAB_DESCRIPTION as RAB_DESCRIPTION ,
             PR_LETTER_MASTER.TEAM_CAPT_MIDDLE_INITIAL as TEAM_CAPT_MIDDLE_INITIAL,
    pr_letter_master.salutation as Salutation
    from      PRISM.PR_LETTER_MASTER PR_LETTER_MASTER
    where secondary_letter_sequence in (:secondary_sequence)]]>
                             </sqlStatement>
                             <sqlStatement name="Q2">
                                  <![CDATA[select followup_description from pr_letter_details where secondary_letter_sequence = :SECONDARY_LETTER_SEQUENCE]]>
                             </sqlStatement>
                        </dataQuery>
                        <dataStructure>
                             <group name="letter1" source="Q1">
                                  <element name="LETTER_DATE" value="LETTER_DATE"/>
                                  <element name="FIRST_NAME" value="FIRST_NAME"/>
                                  <element name="MIDDLE_INITIAL" value="MIDDLE_INITIAL"/>
                                  <element name="LAST_NAME" value="LAST_NAME"/>
                                  <element name="ADDRESS_LINE1" value="ADDRESS_LINE1"/>
                                  <element name="ADDRESS_LINE2" value="ADDRESS_LINE2"/>
                                  <element name="ADDRESS_LINE3" value="ADDRESS_LINE3"/>
                                  <element name="CITY" value="CITY"/>
                                  <element name="STATE" value="STATE"/>
                                  <element name="ZIP" value="ZIP"/>
                                  <element name="ZIP_PLUS" value="ZIP_PLUS"/>
                                  <element name="SALUTATION" value="SALUTATION"/>
                                  <element name="REVIEW_TYPE" value="REVIEW_TYPE"/>
                                  <element name="DT_RAB_PRESENTATION" value="DT_RAB_PRESENTATION"/>
                                  <element name="RAB_DESCRIPTION" value="RAB_DESCRIPTION"/>
                                  <element name="SIGNATURE_NAME" value="SIGNATURE_NAME"/>
                                  <element name="SIGNATURE_PHONE_NUMBER" value="SIGNATURE_PHONE_NUMBER"/>
                                  <element name="SIGNATURE_TITLE" value="SIGNATURE_TITLE"/>
                                  <element name="SIGNATURE_EMAIL_ID" value="SIGNATURE_EMAIL_ID"/>
                                  <element name="TEAM_CAPT_MIDDLE_INITIAL" value="TEAM_CAPT_MIDDLE_INITIAL"/>
                                  <element name="TEAM_CAPT_FIRST_NAME" value="TEAM_CAPT_FIRST_NAME"/>
                                  <element name="TEAM_CAPT_LAST_NAME" value="TEAM_CAPT_LAST_NAME"/>
                                  <element name="REVIEWED_FIRM_NUMBER" value="REVIEWED_FIRM_NUMBER"/>
                                  <element name="REVIEWED_FIRM_NAME" value="REVIEWED_FIRM_NAME"/>
                                  <element name="REVIEW_NUMBER" value="REVIEW_NUMBER"/>
                                  <element name="LETTER_ID" value="LETTER_ID"/>
                                  <group name="Detail" source="Q2">
                                       <element name="followup_description" value="followup_description"/>
                                  </group>
                             </group>
                        </dataStructure>
                   </dataTemplate>

  • Multiple selection problem in adf

    hi all,
    i have table with multiple selection. i use above code but i read only one record. moreover, i read different record in each selection.
    CoreTable table = this.getTable1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = rowSet.iterator();
    bindings = getBindings();
    DCIteratorBinding pr_dcib = (DCIteratorBinding)bindings.get ("arizagozlemview1Iterator");
    while (rowSetIter.hasNext){
    Key key = (Key) rowSetIter.next();
    String ad=key.toStringFormat(true);
    System.out.println(ad);
    pr_dcib.setCurrentRowWithKey(ad);//
    ViewRowImpl rowImpl = (ViewRowImpl)pr_dcib.getCurrentRow();
    Number a = (Number)rowImpl.getAttribute("ArizaNo");
    System.out.println(a);
    }

    The problem is the position of the command button, the button must be out of the table tags
    <af:commandButton text="commandButton 1"
    binding="#{mybacking.commandButton1}"
    id="commandButton1"
    action="#{mybaking.Button_action}"/>
    <af:table value=...

  • Is it possible to diable multiple selections in JTable and JList?

    as the title states, is it possible to disable multiple selections? how to prevent user from using ctrl or shift keys to select multiple rows?

    Use the setSelectionMode(ListSelectionModel.SINGLE_SELECTION ) for your JList / JTable.

  • JSP/JBO multiple Selection problem

    I am user the BC4J JBO InputSelectGroup object to insert what I was hoping multiple selection values into a field. It will only insert one value. What am I doing wrong?

    Hi,
    I am not sure if this is similar to the problem i faced, where I was not able to close the variable selection screen after making use of the variant button.
    I solved this by applying the latest BI 7.0 addon patch.
    Hope this helps you solve your problem.
    Regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 21, 2009 3:10 PM

  • Multiple selection in JList

    How can I set up a JList that always uses multiple selection. That is, it acts as though the CTRL key is held down when the user selects items.

    Here's an example of multi-selection in a listbox, but using the shift key
    import java.awt.*;
    import java.awt.event.*;
    import java.net.*;
    import java.applet.*;
    public class Multi extends Applet implements KeyListener
         List list = new List(5, true);
         public void init()
              createGUI();
              setSize(300,300);
              this.setVisible(true);
         public void createGUI()
              for (int j = 0; j < 20; j++)
                   list.addItem("TESTING MULTI-SELECTION IN A LIST");
              add (list);
              list.addKeyListener(this);
         public void keyReleased(KeyEvent e)
              int key = e.getKeyCode();
              if (key == KeyEvent.VK_SHIFT)
                   int itm[] = list.getSelectedIndexes();
                   for(int i = itm[0]; i < itm[1]; i++)
                        list.select(i);
         public void keyTyped(KeyEvent e){}
         public void keyPressed(KeyEvent e){}
    }

  • Multiple Selection with JList

    Hello!
    I have a Frame with a JList that needs to be able to do multiple slection. The JList ist filled with special names which are found when the user opens a certain file. (so a file-chooser is here too) When the User selects a name every paragraph containing that name should be posted in a textarea.
    However, when i run the program I can select multiple items, BUT it just recognises that the user selected one of the items, and I think it's the first one clicked.
    How can I change that? I have used getSelectedValues() but it just won't work...
    Can someone please help?
    Thanks

    So getSelectedValues() is only returning an array of size 1?
    Paul

  • Multiple Selection problem

    Hello experts,
    I´ve got a query with a variable with a multiple selection. I want to add a list of numbers to that multiple selection. I copy that list into the windows clipboard and then add it to the multiple selection. After that the window doesn´t close when I click on "ok".
    If you want to test it: You´ll always get that failure when you add a list into a multiple selection, then delete everything (click recycle bin) and add it again. After that, you can´t close the window of the multiple selection and strange things happen.
    Can anybode help me, I can´t find any OSS-Note for that problem...
    Thanks in advance

    Hi,
    I am not sure if this is similar to the problem i faced, where I was not able to close the variable selection screen after making use of the variant button.
    I solved this by applying the latest BI 7.0 addon patch.
    Hope this helps you solve your problem.
    Regards,
    Gaurav
    Edited by: Gaurav Kothari on Aug 21, 2009 3:10 PM

Maybe you are looking for