Selection of a row in  a table

Hi,
I have a problem with JTable. ...i have just started working with JTables and still have not got a complete hang of how they function.
I have a table whose model is "AbstractTableModel". I have different data in each row of the table therefore i have a celledtior and cell renderer per row. Each row is rendered as a combo box. There is only one column in that table. What i need to do is when the user clicks on any of these the rows in the table i need to evaluate what is the content in that row(in the combo box-It should be the values that have not been used up yet in the other rows...so basically as you add rows the combo box content will keep shrinking till all the possible vlaues are exhausted).
I added a celleditor listener for every row. When the user clicks on the cell the event get's captured but the row value that shows up is not row the user selected. The value is always the previous selected row. Each cell is rendered as a combo box.
For example if the user selected the first row in the table then the value of the row selected is -1. If the the user adds two more rows and selects the third row then the value selected is 0 (previos selected).
What i cannot figure out is how in the world is this value obtained.
Please help !! I tried everything i can think of to get the correct value of the row selected.
Thanks a lot for your time and patience.
Archana

Hello Suman,
Please, look at 'No First Select from Table' section of this blog: [/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks|/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks]
Good luck,
Ola

Similar Messages

  • Default selection of a row in the table

    Dear all,
    I have given output of one table as the  input to an RFC and the output of this RFC is given to a table and the same scenario we followed for the graphs also. By default first row of the table is getting selected because of that the second table or graph is getting displayed without any user interaction. Please tell us how can we avoid the above. I tried by using guard condition of select but i am unable to control it. Please tell us detailed procedure by which directly i can follow the same.
    Regards,
    Suman.

    Hello Suman,
    Please, look at 'No First Select from Table' section of this blog: [/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks|/people/jarrod.williams/blog/2006/12/14/visual-composer-tips-and-tricks]
    Good luck,
    Ola

  • How to select x numbered row from two tables

    Hi,
    I have one performance problem...
    Here is sample scenario...
    TableA
    A1 A2 A3
    a1     a12     a13
    a2     a22     a23
    a3     a32     a33
    TableB
    B1     B2     B3
    b1     b12     b13
    b2     b22     b23
    I want result like
    A1     B1     A2     B2
    a1     b1     a12     b12
    a2     b2     a22     b22
    I have written it like
    select
    A1,
    B1,
    A2,
    B2
    from
    (select A1, A2, rownum rnA from TableA) a,
    (select B1, B2, rownum rnB from TableB) b
    where rnA = rnB
    but suppose TableA has 2500000 rows and
    TableB has 500 rows then for 500 rows I have to
    wait for all 2500000 rows scanning.
    Is there any smart solution..?
    I have created indexes for on columns A1, (A1,A2,A3), B1, (B1,B2,B3).
    Curious:)
    Rushang Kansara
    Message was edited by:
    Rushang Kansara

    Here is explain plan
    SELECT STATEMENT, GOAL = FIRST_ROWS               Cost=5     Cardinality=67     Bytes=3618
    HASH JOIN               Cost=5     Cardinality=67     Bytes=3618
    VIEW     Object owner=SFMFG          Cost=2     Cardinality=82     Bytes=2214
    COUNT                         
    TABLE ACCESS FULL     Object owner=SFMFG     Object name=TABLEA     Cost=2     Cardinality=82     Bytes=1148
    VIEW     Object owner=SFMFG          Cost=2     Cardinality=82     Bytes=2214
    COUNT                         
    TABLE ACCESS FULL     Object owner=SFMFG     Object name=TABLEB     Cost=2     Cardinality=82     Bytes=1148
    New to sql tunning Here why cardinality goes to 67 and cost to 5???
    Thank you for your time.. :)

  • Reg Selection of  Multiple Rows in a Table

    Hi all,
    I have to select multiple rows from a table and have to display those selected records in another table in the next screen.
    The problem is, when I am selecting the records in a table, selection should not be allowed on some records based on a condition. Is it possible with the default selection mode of webdynpro. If so, Please tell me how can we disable the selection of certain records in a table(using the default selection mode provided by webdynpro)
    Else, if we have to use check boxes for selection(in case of my problem), please do help me out in how to disable the selection of certain records in a table(using check boxes for selection).
    Please help me out. Its urgent...
    Reward points guranteed.
    Regards,
    Murthy.

    HI Narayana,
    Multiple selection  property is specific to a table, not for a tableElment(ie. for a row), so u cant set some of the rows as multi selected and some as node
    U can use Checkbox for this purpose. Based on the condition u can make the check box as enabled and disabled
    To achieve this, Create 2 boolean variables inside table node, one for checkbox value(Let it be <b>CBValue</b> .Bind this to checked property of Checkbox) and other for enabling and disabling Checkbox(Let it be <b>CBReadOnly</b>. Bind this to readonly property of CheckBox).
    At the time of creation of table elements, as per the condition, u can control the selection as
    IPrivate<View>.I<Table>Node tNode=wdContext.node<Table>();
    for(int i=0;i<5;i++)
    IPrivate<View>.I<Table>Element tEl=tNode.create<Table>Element();
    tNode.addElement(tEl);
    tEl.setCBValue(false);//Unchecking Checkboxes initially
    if(condition=non selectable)
      tEl.setCBReadOnly(true);
    else
      tEl.setCBReadOnly(false)
    Regards
    Fahad Hamsa

  • Adding 2 more rows to a select without inserting rows to base table

    hello all,
    i have a below simple select statement which is querying a table.
    select * from STUDY_SCHED_INTERVAL_TEMP
    where STUDY_KEY = 1063;
    but here is the situations. As you can see its returning 7 rows. But i need to add
    2 more rows..with everything else default value or what exist... except adding 2 more rows.
    i cannot insert into base table. I want my end results to increment by 2 days in
    measurement_date_Taken to 01-apr-09....so basically measurement_date_taken should
    end at study_end_Date...
    IS THAT EVEN POSSIBLE WITHOUT INSERTING ROWS INTO THE TABLE AND JUST PLAYIHY AROUND WITH
    THE SELECT STATEMENT??
    sorry if this is confusing...i am on 10.2.0.3
    Edited by: S2K on Aug 13, 2009 2:19 PM

    Well, I'm not sure if this query looks as good as my lawn, but seems to work anyway ;)
    I've used the 'simplified version', but the principle should work for your table to, S2K.
    As Frank already pointed out (and I stumbled upon it while clunging): you just select your already existing rows and union them with the 'missing records', you calculate the number of days you're 'missing' based on the study_end_date:
    MHO%xe> alter session set nls_date_language='AMERICAN';
    Sessie is gewijzigd.
    Verstreken: 00:00:00.01
    MHO%xe> with t as ( -- generating your data here, simplified by me due to cat and lawn
      2  select 1063 study_key
      3  ,      to_date('01-MAR-09', 'dd-mon-rr') phase_start_date
      4  ,      to_date('02-MAR-09', 'dd-mon-rr') measurement_date_taken
      5  ,      to_date('01-APR-09', 'dd-mon-rr') study_end_date
      6  from dual union all
      7  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('04-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      8  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('09-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
      9  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('14-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
    10  select 1063, to_date('03-MAR-09', 'dd-mon-rr') , to_date('19-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
    11  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('23-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual union all
    12  select 1063, to_date('22-MAR-09', 'dd-mon-rr') , to_date('30-MAR-09', 'dd-mon-rr') , to_date('01-APR-09', 'dd-mon-rr') from dual
    13  ) -- actual query:
    14  select study_key
    15  ,      phase_start_date
    16  ,      measurement_date_taken
    17  ,      study_end_date
    18  from   t
    19  union all
    20  select study_key
    21  ,      phase_start_date
    22  ,      measurement_date_taken + level -- or rownum
    23  ,      study_end_date
    24  from ( select study_key
    25         ,      phase_start_date
    26         ,      measurement_date_taken
    27         ,      study_end_date
    28         ,      add_up
    29         from (
    30                select study_key
    31                ,      phase_start_date
    32                ,      measurement_date_taken
    33                ,      study_end_date
    34                ,      study_end_date - max(measurement_date_taken) over (partition by study_key
    35                                                                          order by measurement_date_taken ) add_up
    36                ,      lead(measurement_date_taken) over (partition by study_key
    37                                                          order by measurement_date_taken ) last_rec
    38                from   t
    39              )
    40         where last_rec is null
    41       )
    42  where rownum <= add_up
    43  connect by level <= add_up;
    STUDY_KEY PHASE_START_DATE    MEASUREMENT_DATE_TA STUDY_END_DATE
          1063 01-03-2009 00:00:00 02-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 04-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 09-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 14-03-2009 00:00:00 01-04-2009 00:00:00
          1063 03-03-2009 00:00:00 19-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 23-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 30-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 31-03-2009 00:00:00 01-04-2009 00:00:00
          1063 22-03-2009 00:00:00 01-04-2009 00:00:00 01-04-2009 00:00:00
    9 rijen zijn geselecteerd.If there's a simpler way (in SQL), I hope others will join and share their example/ideas/thoughts.
    I have a feeling that this is using more resources than needed.
    But I've got to cut the daisies first now, they interfere my 'lawn-green-ess' ;)

  • How to diasble selection for particular rows in a Table?

    im currently working on a multiple select table.. i need to disable the checkbox for some particular rows. How can i get runtime control over that cell??

    To disable one or more rows of single or multiple selection in your table, add the following code to your controller processRequest method:
    OATableBean tableBean = ...;
    tableBean.setSelectionDisabledBindingAttr("Disabled");
    In the example above, "Disabled" represents the Boolean view attribute that returns 1/"Y" if one or more rows is (are) to be disabled, otherwise it returns 0/"N". The view attribute "Disabled" must belong to the same view object as the one associated with the table items.
    If its an advanced table, use the same method on OAAdvancedTableBean instead.

  • Selecting and skipping rows in a table

    Hi ALL, i have two tables with the following data
    WITH table1 AS
      SELECT 517 id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  90 src, 'MEDREC-C' name, 'FIN' lvl_1, 'FCS' lvl_2, ' BAN' lvl_3 FROM dual UNION ALL
      SELECT 517 id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' name, 'FINA' lvl_1, 'FIC' lvl_2, ' BAN' lvl_3 FROM dual UNION all
      SELECT 517 id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  91 src, 'MEDREC-H' name, 'BA' lvl_1, 'BAING' lvl_2, ' BAN' lvl_3 FROM dual UNION ALL
      SELECT 517 id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' name, 'FIN2' lvl_1, 'FCY' lvl_2, ' BANW' lvl_3 FROM dual UNION ALL
      SELECT 517 id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  90 src, 'MEDREC-C' name, 'FIN22' lvl_1, 'FCS22' lvl_2, ' BAN22' lvl_3 FROM dual UNION ALL
      SELECT 517 id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' name, 'FINA' lvl_1, 'FIC' lvl_2, ' BAN' lvl_3 FROM dual UNION all
      SELECT 517 id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  91 src, 'MEDREC-H' name, 'BA' lvl_1, 'BAING' lvl_2, ' BAN' lvl_3 FROM dual UNION ALL
      SELECT 517 id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' name, 'FIN2' lvl_1, 'FCY' lvl_2, ' BANW' lvl_3 FROM dual UNION ALL
      SELECT 518 id,  'TA35' cid, To_Date('1/2/2010','mm/dd/yyyy') dt,  90 src, 'MEDREC-C' name, 'IND' lvl_1, 'IMAN' lvl_2, ' CO' lvl_3 FROM dual UNION all
      SELECT 518 id,  'TA35' cid, To_Date('1/2/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' name, 'IND' lvl_1, 'CAP' lvl_2, ' CO' lvl_3 FROM dual UNION all
      SELECT 518 id,  'TA35' cid, To_Date('1/2/2010','mm/dd/yyyy') dt,  91 src, 'MEDREC-H' name, 'EMAC' lvl_1, 'COG' lvl_2, ' CO' lvl_3 FROM dual UNION ALL
      SELECT 519 id,  'TA23' cid, To_Date('1/3/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' name, 'UYS' lvl_1, 'TYU' lvl_2, ' CO' lvl_3 FROM dual UNION all
      SELECT 519 id,  'TA33' cid, To_Date('1/3/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' name, 'UYS2' lvl_1, 'TYU2' lvl_2, ' CO2' lvl_3 FROM dual UNION ALL
      SELECT 519 id,  'TA23' cid, To_Date('1/7/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' name, 'UYS66' lvl_1, 'TYU66' lvl_2, ' CO1' lvl_3 FROM dual UNION all
      SELECT 519 id,  'TA33' cid, To_Date('1/7/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' name, 'UYS2' lvl_1, 'TYU2' lvl_2, ' CO2' lvl_3 FROM dual UNION ALL
      SELECT 520 id,  'TA2' cid, To_Date('1/4/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' name, 'UYS6' lvl_1, 'TYU' lvl_2, ' CO' lvl_3 FROM dual
      -- there is  more data with different id nuimbers
    table2 AS
      SELECT 90 src, 'YB' name FROM dual UNION ALL
      SELECT 59 src, 'YC' name FROM dual UNION all
    SELECT 91 src, 'BB' name FROM dual UNION ALL
      SELECT 88 src, 'YI' name FROM dual
    )i want to write a query that gives the me output below
    ID     CID        DT                  SRC     NAME         LVL_1     LVL_2       LVL_3
    517     TA33     1/1/2010     90     MEDREC-C     FIN       FCS         BAN
    517     TA33     1/5/2010     90     MEDREC-C     FIN22     FCS22       BAN22
    518     TA35     1/2/2010     90     MEDREC-C     IND       IMAN       CO
    519     TA23     1/3/2010     59     MEDREC-R     UYS       TYU         CO
    519     TA23     1/7/2010     59     MEDREC-R     UYS66     TYU66       CO1this is the logic for the output above.
    i am interested in rows with src value of 90 or 59
    the logic should be as follow
    1. if there is a row with src value of 90 and another with src value of 59 then display the row withh src=90
    2. if there is a row with src value of 90 but there is no row with value 59 then display the row with src=90
    3. if there is a row with src value of 59 but there is no row with value 90 then display the row with src=59
    4. if there is no row with src value 59 and/or 90, then dont display anything
    so for a particular id, example 517, there is a row with src=90 and 59, so i want to display the one with src=90
    in id 518, there is one row with src=90 but no row with src=59. display row with src=90
    in 519, there is no row with src=90, but there is one with 59, display row with src=59
    id 520 dont have rows with src 90 or 59, dont display anything
    i want to join table1 and table2 together. in table2 i need to get the src value so that i can join with table1.
    can somebody help write a query that gives me the output above? thanks

    I think this works for your 'new' logic.
    WITH table1 AS
      SELECT 517 the_id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  90 src, 'MEDREC-C' the_name, 'FIN' lvl_1, 'FCS' lvl_2, ' BAN' lvl_3 FROM dual UNION ALL
      SELECT 517 the_id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' the_name, 'FINA' lvl_1, 'FIC' lvl_2, ' BAN' lvl_3 FROM dual UNION all
      SELECT 517 the_id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  91 src, 'MEDREC-H' the_name, 'BA' lvl_1, 'BAING' lvl_2, ' BAN' lvl_3 FROM dual UNION ALL
      SELECT 517 the_id,  'TA33' cid, To_Date('1/1/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' the_name, 'FIN2' lvl_1, 'FCY' lvl_2, ' BANW' lvl_3 FROM dual UNION ALL
      SELECT 517 the_id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  90 src, 'MEDREC-C' the_name, 'FIN22' lvl_1, 'FCS22' lvl_2, ' BAN22' lvl_3 FROM dual UNION ALL
      SELECT 517 the_id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' the_name, 'FINA' lvl_1, 'FIC' lvl_2, ' BAN' lvl_3 FROM dual UNION all
      SELECT 517 the_id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  91 src, 'MEDREC-H' the_name, 'BA' lvl_1, 'BAING' lvl_2, ' BAN' lvl_3 FROM dual UNION ALL
      SELECT 517 the_id,  'TA33' cid, To_Date('1/5/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' the_name, 'FIN2' lvl_1, 'FCY' lvl_2, ' BANW' lvl_3 FROM dual UNION ALL
      SELECT 518 the_id,  'TA35' cid, To_Date('1/2/2010','mm/dd/yyyy') dt,  90 src, 'MEDREC-C' the_name, 'IND' lvl_1, 'IMAN' lvl_2, ' CO' lvl_3 FROM dual UNION all
      SELECT 518 the_id,  'TA35' cid, To_Date('1/2/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' the_name, 'IND' lvl_1, 'CAP' lvl_2, ' CO' lvl_3 FROM dual UNION all
      SELECT 518 the_id,  'TA35' cid, To_Date('1/2/2010','mm/dd/yyyy') dt,  91 src, 'MEDREC-H' the_name, 'EMAC' lvl_1, 'COG' lvl_2, ' CO' lvl_3 FROM dual UNION ALL
      SELECT 519 the_id,  'TA23' cid, To_Date('1/3/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' the_name, 'UYS' lvl_1, 'TYU' lvl_2, ' CO' lvl_3 FROM dual UNION all
      SELECT 519 the_id,  'TA33' cid, To_Date('1/3/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' the_name, 'UYS2' lvl_1, 'TYU2' lvl_2, ' CO2' lvl_3 FROM dual UNION ALL
      SELECT 519 the_id,  'TA23' cid, To_Date('1/7/2010','mm/dd/yyyy') dt,  59 src, 'MEDREC-R' the_name, 'UYS66' lvl_1, 'TYU66' lvl_2, ' CO1' lvl_3 FROM dual UNION all
      SELECT 519 the_id,  'TA33' cid, To_Date('1/7/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' the_name, 'UYS2' lvl_1, 'TYU2' lvl_2, ' CO2' lvl_3 FROM dual UNION ALL
      SELECT 520 the_id,  'TA2'  cid, To_Date('1/4/2010','mm/dd/yyyy') dt,  88 src, 'MEDREC-L' the_name, 'UYS6' lvl_1, 'TYU' lvl_2, ' CO' lvl_3 FROM dual
       table2 AS
      SELECT 90 src, 'YB' the_name FROM dual UNION ALL
      SELECT 59 src, 'YC' the_name FROM dual UNION all
      SELECT 91 src, 'BB' the_name FROM dual UNION ALL
      SELECT 88 src, 'YI' the_name FROM dual
    SELECT
       results.the_id              ,
       results.cid                 ,
       results.dt                  ,
       results.src                 ,
       results.the_name            ,
       results.lvl_1               ,
       results.lvl_2               ,
       results.lvl_3               ,
       t2.the_name AS tab2_the_name
    FROM
          SELECT
             the_id  ,
             cid     ,
             dt      ,
             src     ,
             the_name,
             lvl_1   ,
             lvl_2   ,
             lvl_3   ,
             CASE
                WHEN src IN (59, 90)
                THEN rank() over (partition BY the_id order by
                   CASE
                      WHEN src IN (59,90)
                      THEN src
                      ELSE -100
                   END DESC )
                ELSE NULL
             END AS rn
          FROM
             table1
       results,
       table2 t2
    WHERE
       results.src = t2.src
    AND
          rn  = 1
       OR rn IS NULL
                THE_ID CID  DT                                  SRC THE_NAME LVL_1 LVL_2 LVL_3  TA
                   517 TA33 01-JAN-2010 12 00:00                 90 MEDREC-C FIN   FCS    BAN   YB
                   517 TA33 05-JAN-2010 12 00:00                 90 MEDREC-C FIN22 FCS22  BAN22 YB
                   517 TA33 05-JAN-2010 12 00:00                 91 MEDREC-H BA    BAING  BAN   BB
                   517 TA33 05-JAN-2010 12 00:00                 88 MEDREC-L FINA  FIC    BAN   YI
                   517 TA33 01-JAN-2010 12 00:00                 91 MEDREC-H BA    BAING  BAN   BB
                   517 TA33 01-JAN-2010 12 00:00                 88 MEDREC-L FINA  FIC    BAN   YI
                   518 TA35 02-JAN-2010 12 00:00                 90 MEDREC-C IND   IMAN   CO    YB
                   518 TA35 02-JAN-2010 12 00:00                 88 MEDREC-L IND   CAP    CO    YI
                   518 TA35 02-JAN-2010 12 00:00                 91 MEDREC-H EMAC  COG    CO    BB
                   519 TA23 03-JAN-2010 12 00:00                 59 MEDREC-R UYS   TYU    CO    YC
                   519 TA23 07-JAN-2010 12 00:00                 59 MEDREC-R UYS66 TYU66  CO1   YC
                   519 TA33 03-JAN-2010 12 00:00                 88 MEDREC-L UYS2  TYU2   CO2   YI
                   519 TA33 07-JAN-2010 12 00:00                 88 MEDREC-L UYS2  TYU2   CO2   YI
                   520 TA2  04-JAN-2010 12 00:00                 88 MEDREC-L UYS6  TYU    CO    YI
    14 rows selected.
    Elapsed: 00:00:00.25
    ME_XE?

  • I can select only one row in my table why?

    hi.. i have just started cold fusion. i am trying to connect
    my database. its ok. but i can see only one row? why?
    ff4.cfm =>
    <cfquery name = "myFirstSelect" datasource="calisma">
    select * from fuat1
    </cfquery>
    ff5.cfm =>
    <cfinclude template="ff4.cfm">
    <table>
    <cfoutput query="myFirstSelect">
    <tr height="20" onMouseOver="this.bgColor='#colorlist#';"
    onMouseOut="this.bgColor='#colorrow#';" bgcolor="#colorrow#">
    <td>AD</td>
    <td>SOYAD</td>
    <td>NUMBER</td>
    </tr>
    <tr height="20" onMouseOver="this.bgColor='#colorlist#';"
    onMouseOut="this.bgColor='#colorrow#';" bgcolor="#colorrow#">
    <td>#AD#</td>
    <td>#SOYAD#</td>
    <td>#NUMBER#</td>
    </tr>
    </table>
    </cfoutput>
    i can retrieve only one row. Cannot access the second row of
    table. What can I do? What can I reach the second row?
    thankx

    ok i solve this problem thanx

  • Cannot select column or rows in a table

    I've created two column document - but for some reason cannot select the columns so that I can format them. The selection menu items are grayed out. And when hovering with curser the curser does not convert to arrow to enable 'select'. I just want to add lines around the table columns but can't. Anyone know solution? Must be something simple I did when setting up the two column document . . . .

    Rich,
    Select one cell, then Right-Click or Control-Click, for the contextual menu:
    or Choose Menu > Format > Table > Select Row / Column.
    Regards,
    Jerry

  • SELECTing from multiple rows and different tables

    Basically, I have a table with a primary key and some other columns of data. The second table has a foreign key that points to the first table then has a columns with related data. I want to write construct a SQL query where one of the columns is the primary key from the first table and the second column is a concatenation of all the rows in the second table that have the same foreign key.
    I need this in the form of one SQL statement so that I can use it to create a report in Application Express

    Just in case my first post was a bit unclear.
    My first table has a primary key, INTERACTION_ID, and several other columns of data.
    My second table has a foreign key, INTERACTION_ID, and one extra column, USER_NAME.
    There are several rows in the second table that share the same INTERACTION_ID as each interaction can have many user names. I want to construct a SQL query where I pull the interaction id in one column and concatenate all the relevant rows of USER_NAME as the second column.

  • How can I display "detailStamp" facet selectively for rows in a table ?

    Hi,
    My JDEV version is Studio Edition Version 11.1.1.5.0
    I am trying to display "detailStamp" facet selectively .
    If I read api in link below
    http://docs.oracle.com/cd/E26098_01/apirefs.1112/e17488/oracle/adf/view/rich/component/rich/data/RichTable.html
    Use the "detailStamp" facet on the Table to include a collapsable content area for each table row. Please note that the height of the open detail area will be a set height based on the height of the detailStamp component. Adding a component that changes in height (like showDetail or panelBox) will by default produce strange results when the detailStamp component's height changes.
    Detail Stamp can be selectively displayed for rows in the table by EL binding the "rendered" attribute of the "detailStamp" facet to "true" or "false". The EL binding can contain references to the table "var" attribute since during rendering it will be executed in the context of the row. Disclosure icon is displayed only for rows which have rendered="true".
    I can see that i can achieve it by setting rendered property for that facet. BUT this property is not available in Studio Edition Version 11.1.1.5.0

    Hi Frank.
    Thanks for your quick reply .
    But I am using Studio Edition Version 11.1.1.5.0 . In this version the property RENDERED of f:facet name="detailStamp" is NOT allowed.
    Edited by: user13764942 on Feb 7, 2013 5:48 AM
    Put in another way , I want to render the "detailStamp" facet selectively for rows , so for that I need the RENDERED property of "detailStamp" facet. This property is ONLY available in Jdev version 11.2 . I am using Jdev 11.1.1.5.0 so I need some alternative to RENDERED property as this property is NOT available in Jdev 11.1.1.5.0.
    Please suggest some way to achieve this behaviour of displaying "detailStamp" facet selectively ....
    Thanks!
    Edited by: Mangpal Singh on Feb 7, 2013 11:57 PM

  • Is there an easy way to see how many rows in a table? (selected or unselected)

    Hi all,
    Forgive me if this is a REALLY dumb question but I would love to know if there there is an easy way to to see how many rows there are in a table in InDesign?
    (And I bet I am really going to kick myself when I hear the answer and how simple it probably is..lol !)
    I am working on a huge catalog and am dealing with LOTS of tables...very long tables too at times. I am also doing a lot of copying and pasting back and forth between InDesign and Excel and it would REALLY help if I knew how many rows there are in a table without having to manually count them (TIRESOME!!).
    Also, is there a way to see how many rows I have selected at any one time? It would be SO WONDERFUL if the info box could also provide this information.
    Thank you SO MUCH in advance for your help:))
    Christine
    **UPDATE**
    Oh boy I AM going to kick myself! Why only NOW that I wrote this question did I suddenly notice that the Table palette shows the number of rows and columns? lol.
    Okay, then is there a way to see how many rows I have selected at any given time?

    @Christine – try the following ExtendScript (JavaScript):
    if(app.selection.length === 0
        || !app.selection[0].constructor.name === "Cell"
        || !app.selection[0].constructor.name === "Table"){
        exit(0);
    var sel = app.selection[0];
    if(sel.constructor.name === "Cell"){
        var tableRowLength = sel.parent.rows.everyItem().getElements().length;
    if(sel.constructor.name === "Table"){
        alert("All "+sel.rows.everyItem().getElements().length+" rows selected in current table." );
        exit(0);
    var numberOfRowsSelected = sel.rows.length;
    var indexOfSelectedRows = sel.rows.everyItem().index;
    var startRowSel = indexOfSelectedRows[0]+1;
    var endRowSel = indexOfSelectedRows.length+indexOfSelectedRows[0];
    alert(numberOfRowsSelected +" row(s) selected.\r"+startRowSel+" to "+endRowSel+" out of "+tableRowLength+" of current table.");
    You need not select whole rows, just one or a couple of cells.
    Then run the script.
    An alert message is telling you how many rows belong to the cell range you have selected and:
    which rows of the table are selected…
    A typical message would be:
    6 row(s) selected.
    3 to 8 out of 20 of current table.
    The script does some basic checks of the selection.
    If no cell or table is selected, it will just do nothing…
    Uwe
    Message was edited by: Laubender | Some language cosmetics in the alert message

  • How to populate the selected row details of table in the next view?

    hi,
    Im having a table, on selecting a particular row of a table by clicking on a radio button. i need that row details to be passed on(populated) to the next view when i navigate to that view by clicking on a button?
    Thanks & Regards,
    Suresh

    Hi Suresh,
    Your scenario is simple. Just follow the ex as shown below
    (Assuming you want default selection view provided by table itself.)
    1>Create 2 views (Ex:A and B)
    2>Create a Context with a node and attributes(For Ex:Person as node and Fname and Last Name as attributes
    2>In A view create a table with F name and L Name(map to context as well) and a action button to navigate to B view when you selected a particualr row o.k
    3>In B view, create a TextView with mapping to LastName(or all the data if you want from input selection) from the context
    If you want you can add back action button from B view to A view for easy navigation.
    4>Execute the application and select any row in the table appeared, press next action button,you can see that the selected row details will be shown in second(B) view.
    If you do the above example, I think you can easily find the solution for navigation issue.. try it out.
    In case if you are not able to ...let me know..I have that example.
    Hope that helps
    Regards
    Praveen

  • I am unabel to select all rows in advance table using Select All option

    Hi all ,
    I am unable to select all the rows in advance table . Select All option in advance table selects all rows present in working page but doesnt select the rows which we get by clicking next button ... i am having a requirement to select all the rows with a single click on select all , is it possible ..
    Plz help
    Thanking you all

    Hi,
    I'm using an adf table but i don't want to have the "Select All" and "Select None" options above the table. Does someone know how i have to remove those links?
    Or is there indeed a solution to override the methodes of those links?
    Message was edited by:
    Alexander

  • Programmatically selecting row in af:table

    I have an instance of the <af:table> component that points to a value on a managed bean of type List<MyValueType>.
    I need to make the <af:table> have a preselected row, and I have the value of type MyValueType that represents the row I need selected.
    How do I programmatically select the appropriate row in the table?
    Thanks!

    Hi Rune,
    1) Expose the adf table to a managed bean property by using @binding attribute, say, requestScope. The property should be RichTable type.
    2) Create a method in java class which can find the managed bean created in step 1) by using EL expression and calling its RichTable.setRowKey(int) to set the current row. Other row currency method are also available besides setRowIndex(int).
    3) Create Data Control on the java class you created in step 2)
    4) Insert the method created in step 2) into <bindings> as methodAction in page definition file.
    5) Still in page definition file, insert an invokeAction into <executables> to invoke the method action created in step 4)
    6) Reorder the invokeAction created in step 5), place it below the table's <iterator>
    7) Set the @refresh attribute for the table <iterator> and <invokeAction> if you want, for example: "prepareModel"
    -Or-
    You can implement a custom page lifecycle to achieve the goal.
    Todd

Maybe you are looking for

  • How to manage a data file using Business Contact Manager database tool

    I set up BCM on my desktop and now want to share with the rest of the office. I downloaded BCM database tool on the C drive of the server and all was well until I tried to move through the wizard. The only option that gets me to a data file is creati

  • External screen shows guest user screen instead

    When I connect an external screen via TV, I can't get my own logged in user screen to show up. What keeps showing up instead is the Guest user screen, which I'm not even logged into. Any advice on how to get my own user screen to show up? Thanks I ad

  • ITunes 6 - error 1302

    I just downloaded iTunes 6 after iTunes 5 wasn't working at all. I tried everything to fix iTunes 5 and nothing worked until I downloaded iTunes 6. Now iTunes 6 opens (iTunes 5 never opened when i clicked on it, no error message, nothing) but this ti

  • Reader 11.0.04 or 11.0.05 does not select default printer

    Using HP Pavillion dv7-6c47cl win 7/64 with wireless HP printer but won't allow selection of this printer.  Any suggestions?

  • Safari 5.05 in Lion

    I just updated to Lion but don't seem to have the new Safari features described in the Lion literature.  I checked my version (5.05) and found a newer Safari (5.1) on apple.com.  Running the update I get a message that I need Mac 10.6.  Basically, th