get the multiselect table data

Hello

I use ADF 11g (11.1.1.1.0 Jdeveloper) and EJB to access data from the database.
I have a table with multiselect true. The code for the bean of support to return the selected lines is:

Table RicheTableau = this.getT1 ();
Iterator itr = table.getSelectedRowKeys () .iterator ();
While {(itr.hasNext ())}
The list l = (List) itr.next ();
Key = (Key) l.get (0);
System.out.println (Key.GetAttribute (0));
}

The problem is that the inner loop is executed once when I have more selected rows (last row is printed).
Any help on this?

Published by: Bostjan Lipnikar on 29.10.2009 06:31

Hi warda,.

Your code is fine looking for me. Just delete the property "selectedRowKeys" of the table and see (make sure you set rowSelection multiple ownership).

Go through the following by Andrejus blog if you stuck anywhere:
http://andrejusb.blogspot.com/2007/02/multi-selection-feature-and-ADF-faces.html

Jean Lou

Published by: Marc Israel on October 29, 2009 05:33

Tags: Java

Similar Questions

  • ETA App should help to get the time and date feature HELP!

    Hi everyone, I'm doing an application where I need to get the time and date of the antone device can help, I know there is a function such as getDate or getTime but im not to know how to use it.

    As far as I know,

    I use this to get the time system (it returns long type)

    System.currentTimeMillis();
    

    After that, you can use SimpleDateFormat to convert date and time

    SimpleDateFormat sdf = new SimpleDateFormat("dd.MM.yyyy, HH:mm");
    String time = sdf.format(new Date(System.currentTimeMilis()));
    
  • Get the only table name in model executing the revese engineer but columns do not come

    Get the only table name in model executing the revese engineer but columns do not come. I used the standard procedure.  Please let me know why I am not getting column in my model.

    I have attached the screen shot for the same thing.

    This is a table or a synonym? In the case of synonym or try to add the property as it appears below thread.

    Reverse engineering a synonym in ODI 11 G.

    Or maybe go with personal setbacks.

  • How to get the underlying tables

    Hi all

    EBS R12.2

    How can I get the underlying tables of the following form?

    Capture.PNG

    Thank you very much

    Jen

    Hello

    Go to help-> review-> properties-> point.

    That's how you get the base table (FND_USER_RESP_GROUPS_INDIRECT):

    Kind regards

    Bashar

  • How can I get the list of data stores in a cluster data store?

    How can I get the list of data stores in a cluster data store? I mean the command line option.

    Hello

    by command line, you mean PowerCLI?

    If so, you can display data with this warehouses:

    Get-DatastoreCluster-name DSClustername | Get-Datastore

    Tim

    Edit: Moved the thread to the PowerCLI community

  • Get the closest previous date you

    First, example table and data:
    drop table CUSTOMER_INFO_TEST;

    CREATE TABLE CUSTOMER_INFO_TEST
    (
    ACCOUNT_NUM VARCHAR2 (40 BYTE),
    PHONE VARCHAR2 (100 BYTE),
    E-MAIL VARCHAR2 (300 BYTE),
    DATE OF START_DT,
    DATE OF CHANGE_DT,
    END_DT DATE
    );



    INSERT INTO CUSTOMER_INFO_TEST VALUES ('BOB', 555-1234', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-05', 'YYYY-MM-DD'), TO_DATE ('2011-01-10', 'YYYY-MM-DD'));
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('BOB', 555-1234', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-11', 'YYYY-MM-DD'), NULL);
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('BOB', 555-1234', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-15', 'YYYY-MM-DD'), NULL);
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('JACK', 555-4321', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-05', 'YYYY-MM-DD'), NULL);
    INSERT INTO CUSTOMER_INFO_TEST VALUES ('JACK', 555-4321', ", TO_DATE ('2011-01-01', 'YYYY-MM-DD'), TO_DATE ('2011-01-09', 'YYYY-MM-DD'), NULL);

    commit;

    I want to query this table with a date range, change_dt, always to give me the lines in the range AND the previous row.
    select * from CUSTOMER_INFO_TEST where change_dt >= TO_DATE('2011-01-05', 'YYYY-MM-DD') and change_dt <= TO_DATE('2011-01-10', 'YYYY-MM-DD')
    
    BOB     555-1234          2011-01-01     2011-01-05     2011-01-10
    JACK     555-4321          2011-01-01     2011-01-05     
    JACK     555-4321          2011-01-01     2011-01-09     
    The foregoing will give me the correct result, a BOB and two jacks, since also while JACK and BOB changes the 5 January.

    But I want the same result, when you select it with 6 Jan as start date,


    This is how I can make it explicit for BOB
    select * from CUSTOMER_INFO_TEST where 
    change_dt >= (select max(change_dt ) from CUSTOMER_INFO_TEST where change_dt <= to_date('2011-01-06','YYYY-MM-DD') and ACCOUNT_NUM = 'BOB')
    and change_dt <= to_date('2011-01-06','YYYY-MM-DD')
    and ACCOUNT_NUM = 'BOB'
    
    BOB     555-1234          2011-01-01     2011-01-05     2011-01-10
    Is this possible without a sub request, and in a statement across the table without specifying the actual table data, as I did with "BOB" in the above statement?

    Edited by: Rydman January 14, 2013 14:39

    Hello

    I think I understand now: you have 2 parameters, range_start_dt and range_end_dt, and you want to find the rows where the change_dt is between these parameters, PLUS you want the last row for each account_number coming before the interval given, if the same customer has lines in the range.

    Here's a way to do it:

    VARIABLE  range_start_dt     VARCHAR2 (10)
    VARIABLE  range_end_dt          VARCHAR2 (10)
    EXEC      :range_start_dt := '2011-01-06';
    EXEC      :range_end_dt   := '2011-01-10';
    
    WITH     got_r_num     AS
    (
         SELECT     account_num, phone, email, start_dt, change_dt, end_dt
         ,     RANK ()       OVER ( PARTITION BY  account_num
                                   ,                    SIGN (start_dt - TO_DATE ( :range_start_dt
                                                                 , 'YYYY-MM-DD'
                                                     )
                                       )
                             ORDER BY        start_dt   DESC
                           )         AS r_num
         FROM     customer_info_test
         WHERE     change_dt     < TO_DATE ( :range_end_dt
                                 , 'YYYY-MM-DD'
                               ) + 1   -- See note below
    )
    SELECT       account_num, phone, email, start_dt, change_dt, end_dt
    FROM       got_r_num
    WHERE       change_dt     >= TO_DATE ( :range_start_dt
                                , 'YYYY-MM-DD'
                           )
    OR       r_num          = 1
    ;
    

    Range_end_dt indicates just the calendar day of the end of the range; in other words: range_end_dt = ' 2011-01-10' means anything at any time, January 10, 2011, until 23:59:59, must be included. Instead of saying you want everything up to and including 23:59:59 on January 10, I find it easier just to say you want everything up to but not including the day after January 10.

    If all change_dts for a given account_num after range_end_dt, then no output for this account_num will be generated.

  • How can I get the time and date appears on a sony cyber-shot camera

    How can I get the time and date appears on a sony cyber-shot camera

    Hi terpmarty,

    What is the model number of the Sony Cybershot camera?
    Instructions for superimposing the date and time are model specific. Some models do not have the ability to superimpose the date and time too. In such a case, you can use the supplied software Picture Motion Browser (PMB) or PlayMemories home (WPH) (Compatible with the Windows operating system) to print the date and time on pictures.

  • When the research report I get the message "no data found".

    When I run a search on one of the fields of research, I get the message "no data found". Anyone can help me to understand what it is that I don't hurt or not done? Thank you

    Deanna

    http://Apex.Oracle.com/pls/OTN/f?p=4550:1:4031563210204584

    Workspace: DEANNA2
    Username: DDOVE@KHP. KS.GOV
    Password: Dclipse03

    Page 21

    No, I added a calculation to the page to see what is the sql code that is returned by the function... Now, I could add in another column and see what happens...

    That's why I suggested moving it to a function outside the page... You can test this in the sql command window and the prefect what you are after... Have done reports a little like this... Or even more fun, with a function in the pipeline...

    Thank you

    Tony Miller
    Webster, TX

  • Get the response time data VI

    Hi guys,.

    I am trying to use CD get time response data VI my VI. When I choose the pair of input-output, I can get the response data determined by the digital input to the output value. However, I need more of a pair of response data. I try to use the list of input-output, but there is no output data and response time of the VI with table 1 d of numbers.

    My question is how to use the CD get time VI data response with the list of inputs-outputs configuration? Thank you.

    Hey, Shapiro,.

    I think the problem is you have two 0 items in the above table for you will be out this definition data twice. Let me know if this does not solve the problem for you.

  • How to get the timestamp of data DAQmx Read

    Hello

    I have to read 4 analog channels using DAQmx AI read in LabVIEW 2012. I am using screws DAQmx.

    Acquisition rate is 4000 samples per second, and the number of samples per channel is 200.

    I use only one task DAQmx to read the data. I get 4 data tables for 4 channels each table length is 200, every time, DAQmx Read happens.

    But I want to get the seal of these 200 samples per channel. How to get the seal of these samples, made me know.

    Thank you

    You have not indicated your code. If you choose to read the waveform data, the cluster includes t0 and dt. That's all the information you need.

  • The ADF Table data validation and highlighting

    I have an ADF table, supported by a VO. Gets the data loaded from a spreadsheet file. There are some required columns marked with the required attribute. the columns do not get highlighted when loaded data are empty. How can I get auto table validated during the loading of data and WITHOUT a commit / submit to the rear end table?

    My requirement is.

    1 load the data into the table.

    2. a way to highlight the rows or columns that have no values (how?) I tried the style inline for column as #{row.bindings.invamt == null?' background-color: Red;': ' background-color: White;'}, but no luck.

    3. validate data from db.

    User, tell us your version of jdev, please!

    If the table is editable, you can add this to the inputText of the column

    contentStyle = ' #{empty row.bindings.PhoneNumber.inputValue?» "{- color: red;':"} ".

    For the PhoneNumber column. If the table is read only the cellular connection is

    973564 wrote:

    I have an ADF table, supported by a VO. Gets the data loaded from a spreadsheet file. There are some required columns marked with the required attribute. the columns do not get highlighted when loaded data are empty. How can I get auto table validated during the loading of data and WITHOUT a commit / submit to the rear end table?

    My requirement is.

    1 load the data into the table.

    2. a way to highlight the rows or columns that have no values (how?) I tried the style inline for column as #{row.bindings.invamt == null?' background-color: Red;': ' background-color: White;'}, but no luck.

    3. validate data from db.

    contentStyle = ' #{blank line.» Phone number? "{- color: red;':"} ".

    So I guess that the connection you are using is not correct.

    Timo

  • How to get the difference in dates in days

    Hi friends,

    How to get the date difference between two dates exactly

    date2-date1 days exactly... shouyld rounded to the nearest value of...

    and one entire display i mean positive integer
    Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service

    This gives negative also result

    Hello

    776317 wrote:
    Hi friends,

    How to get the date difference between two dates exactly

    date2-date1 days exactly... shouyld rounded to the nearest value of...

    Date1 - date2 is the exact number of days is after date2 date1. (It is as accurate as possible, given that the DATEs do not have fractions of a second).

    and one entire display i mean positive integer
    Select round ((sysdate) - to_date (date_start)), date_start days of per_periods_of_service

    You want to probably get the exact number of days first, then ROUND this number:

    SELECT  ROUND (SYSDATE - TO_DATE (date_start, ...))   AS days
    FROM    per_periods_of_service; 
    

    Always pass arguments at least 2 to TO_DATE:
    (1) the string to be converted, and
    (2) a saying string how (1) is formatted

    This gives negative also result

    Right; If date1 is before date2 then date1 - date2 returns a negative number.
    If you want to never get a negative value, use ABS (date2 - date1). If it returns 4, then you know that one of the DATEs was 4 days before the other, but you won't know who was earlier.

    I hope that answers your question.
    If not, post a small example data (CREATE TABLE and only relevant columns, INSERT statements) and also publish outcomes from these data.
    Explain, using specific examples, how you get these results from these data.
    Always tell what version of Oracle you are using.

  • By using the query table data pump

    I am trying to perform an export of data pump on a table by using a query in a parfile and I'm getting a strange behavior. The database version is 10.2.0.4.3 and the AIX 5.3 operating system. The query looks like this.

    QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "

    This works, but gets 0 rows. If I run the query against the instance in a session of SQLPlus as below then I get 0 rows returned.

    Select * from POSDECLARATIONQUEUE where SESSIONID in (select "B.SESSIONID" from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where "B.SESSIONID" = "C.ID" AND "C.ACCOUNTID" = 'A.ID' and 'Inform' = '10252');

    If I take the columns all about apostrophes in the query on the Forum with SQLPlus, I get over 2000 rows returned.

    SQL > select count (*) in the POSDECLARATIONQUEUE where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252);

    COUNT (*)
    ----------
    2098

    If I remove the apostrophes in the query parfile then I get the following error in data pump export.

    DEU-00014: invalid value for the parameter, "schemas".

    The PATTERNS option is not specified in parfile him and the TABLES option specifies that the table POSDECLARATIONQUEUE.

    Can someone help with this, I can't seem to be able to get the syntax just to work within data pump.

    Kind regards.
    Graeme.

    Published by: user12219844 on April 14, 2010 03:34

    It seems that your query can be a little wrong:

    That's what you have:

    QUERY = "POSDECLARATIONQUEUE:where SESSIONID in (select"B.SESSIONID"from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C, where"B.SESSIONID"="C.ID"and"C.ACCOUNTID"= 'A.ID' and 'Inform' = '10252')" "

    That's what I would have thought it should look like:

    QUERY = POSDECLARATIONQUEUE: "where SESSIONID in (select B.SESSIONID from POSACCOUNT A, POSDECLARATIONQUEUE B, POSDECLARATIONSESSION C where B.SESSIONID = C.ID and C.ACCOUNTID = A.ID and inform = 10252).

    You want to double "around the full query and you have not need single ' around all =." The single ' treat these values as strings and he said

    "B.SESSIONID" = "C.ID".
    the B.SESSIONID string is the string C.ID

    In your query you used in sql has been

    B.SESSIONID = C.ID

    that said, it is that the B.SESSIONID stored value equal to the value stored at C.ID

    Which is what you want.

    Dean

  • The ADF table data to Excel or PDF

    Hi all
    I want to export some ADF data to Excel or PDF. I used the export action listener collection. It allows only to export data from table to Excel. Its ok, but in some tables I have columns that contain data such as 0123 (i.e. with leading zeros.). In this case, when I export to excel, these zeros are not displayed in excel. Is there a way I can avoid this problem. If this is not the case, is it possible to get the data in table adf to PDF?

    Thank you very much.

    Same problem in mycase (excel). I managed to solve this nonprintable character adding at the and of the outputText value.
    Here is my code:

    
      
    
    {code}
    
    My non-printing character... hold down alt key and on numeric keyboard part enter 255.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                
    
  • How to get the Application Build Date and time?

    Hi guys,.

    I am developing application in Cascade.

    What is the API I can use to get the construction Date of the application and Tiime?

    These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:

    fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);

Maybe you are looking for

  • How to remove apps perminately

    I need to remove an app forever. How can I do this? I deleted off the screen but do not want on my account, as much as it has a charge after the free period.

  • Satellite L755-128 stop without reason

    Problem #1 when I play games after 30 to 60 minutes pc closed down and power led + battery led flashes orange Problem #2 a few times locking digital LEDs have a variable glow is like a light bulb that receive the variable power. Example of battery pr

  • Accountsd wants to use login keychain. Cannot type anything.

    Hello hhaving a few problems. 1 safari did not.  I have several times to quit smoking. Logged on. No change 2. the following message receipt. Accountsd wants to use your login keychain ". Would not allow me to type the password. 3 stop and now will n

  • ERROR MESSAGE WHEN YOU INSTALL UPDATES

    "WindowsUpdate_00000001" "WindowsUpdate_dt000" Above IS THE CODE of ERROR WHEN WINDOWS UPDATE I KEEP TRYING AGAIN, TO no AVAIL. FRANK WEATHERLY

  • Function 'Remember password' in Outlook Express does not work

    By connecting to Outlook Express I always type my password of account and I want to remove this step.  Measures already taken is delete and re - configure the account with tools - accounts - server - properties.  I contacted Optus and Microsoft Outlo