Record groups and LOV

HI
I have a question regarding LOV's.
I have 2 fields dept_code which is a checkbox and field2 which is an LOV displaying the employee names based on the dept_code selected.
My record group has a query like this -
SELECT empname FROM emp WHERE dept_code IN(:parameter.P_dept_code). p_dept_code is char.
If the user enters multiple department codes then my p_dept_code should contain commas and single quotes for each department like this ('m10','m20')
In which trigger do I do this coding and how do I do it?
Thanks.

Hi
Thanks for your response.
The key-listval does'nt seem to firing.
When I run the form the lov comes up but displays the value 2 which is from the default record group(select 1 "dno", 2 "ename" from dual).
This is the code in my key-listval -
DECLARE
rg_name VARCHAR2(40) := 'name_rg';
rg_id RecordGroup;
gc_id GroupColumn;
errcode NUMBER;
BEGIN
rg_id := Find_Group(rg_name);
IF Id_Null(rg_id) THEN
rg_id := Create_Group(rg_name);
gc_id := Add_Group_Column(rg_id, 'dno',
CHAR_COLUMN,10);
gc_id := Add_Group_Column(rg_id, 'empno',
CHAR_COLUMN,100);
END IF;
     :parameter.p_dno := ''''||replace(:parameter.p_dno,',',''',''')||'''';
errcode := Populate_Group_With_Query( rg_id,
'select dno dno, ename ename from emp1 where dno in ('|| :parameter.p_dno|| ')' );
set_lov_property('name_lov', GROUP_NAME, rg_name);
list_values;
message(errcode);
END;
Please let me know what I'm doing wrong
TIA

Similar Messages

  • (urgent) Dynamic record groups and LOV

    I have to create a record group and then add 2 rows to it manually.Following is the code.There are no values displayed in the lov.Please help.
    PROCEDURE create_record_group IS
    BEGIN
    DECLARE
    rg varchar2(40) := 'test_fips';
    rg_id RECORDGROUP;
    lov_id Lov;
    err NUMBER;
    gc_id1 GROUPCOLUMN;
    gc_id2 GROUPCOLUMN;
    counter number;
    BEGIN
    rg_id := FIND_GROUP(rg);
    lov_id := FIND_LOV('LOV_FIPS');
    IF NOT ID_NULL(rg_id) THEN
    DELETE_GROUP(rg_id);
    END IF;
    IF ID_NULL(rg_id) THEN
    rg_id := CREATE_GROUP(rg);
    gc_id1 := add_group_column (rg_id,'col1',number_column);
    gc_id2 := add_group_column(rg_id,'col2',char_column,40);
    END IF;
    /* adding static content to LOV */
    ADD_GROUP_ROW( rg_id,1);
    SET_GROUP_NUMBER_CELL(gc_id1,1,997);
    SET_GROUP_CHAR_CELL(gc_id2,1,'MLAB');
    counter := get_group_row_count(rg_id);
    /* adding dynamic content */
    FOR rec in (SELECT FIPS_CD COL1, LOCNAME COL2 FROM FIPS) LOOP
    counter := counter +1 ;
    ADD_GROUP_ROW( rg_id, counter);
    SET_GROUP_NUMBER_CELL(gc_id1,counter,rec.col1);
    SET_GROUP_CHAR_CELL(gc_id2,counter,rec.col2);
    END LOOP;
    SET_LOV_PROPERTY('LOV_FIPS',GROUP_NAME, rg);
    END;
    END;

    I tried creating the group the way you suggested but it does not seem to work because of 'UNION' in the query.It says unable to create rcord group.Did you anytime use the 'UNION' option while creating record group.
    While creating record group at design time also you cannot use UNION with dual.
    This how I modified :
    PROCEDURE create_record_group IS
    BEGIN
    DECLARE
    V_RG_ID RECORDGROUP;
    RG_NAME VARCHAR2(20) := 'TEST_FIPS';
    V_ERRCODE NUMBER;
    BEGIN
    V_RG_ID := FIND_GROUP('TEST_FIPS');
    IF ID_NULL(V_RG_ID) THEN
    V_RG_ID := CREATE_GROUP_FROM_QUERY('TEST_FIPS', 'SELECT FIPS_CD, LOCNAME FROM FIPS
    UNION SELECT 997,'MLAB' FROM DUAL');
    END IF;
    V_ERRCODE := POPULATE_GROUP(V_RG_ID);
    MESSAGE('CREATED '|| V_ERRCODE);
    SET_LOV_PROPERTY('LOV_FIPS',GROUP_NAME, RG_NAME);
    END;
    END;
    Notice here 'MLAB' is char and I get compilation error if I use these quotes with MLAB.But is I remove the quotes the it compiles.
    Thanks

  • Creation of Record Group and LOV at run time

    Hello All,
    I have been stuck by this...I have two text items on which LOVs have been placed.Selection of one depends on selection of other.I can dynamically create a record group but how to create a LOV dynamically to populate it with the dynamic record group been created.
    For more visualization consider that filtering of data takes place in one lOV based on the other LOV been provided.
    Revert ASAP...
    Thanks and Regards,
    Kapil Uppal

    I don't think you can create a LOV dynamically, but you can repopulate a pre-existing one, which should allow you to achieve the same goal.

  • Static record group and lov problem

    hi all,
    1)I created a form module
    2)created a basic datablock based on empno and ename from emp table.
    3) created a static record group ,where i specified the column name as col1,provided the values as 1 ,2,3,4,5 etc
    4) created an LOV and assigned the above record group to the LOV
    5) then assigned the lov to the emp.empno item in the datablock emp....
    when i run the form .....i get the list of values message on the console (bottom end of the window) ....
    but I am not able to see the LOV when i press the cntrl L or see it from the edit menu command ?
    what must be the problem ?
    ta
    s

    Dear,
    May be you don't set LOV's "Column Mapping Properties". After setting the properties correctly you will be able to display LOV.
    Thanks.

  • Record Group and From-Clause Datasource

    I need to do several complex queries (read-only) for my form. Original I used From-Clause datasource but, as the requirement changed, there are some limitations. I would rather no do anything dynamically if as all possible because there are over 20 such queries which makes the code difficult to maintain. I wanted to be able to reference block items in the query.
    I'm thinking about using Record Group query instead. What are the differences in capability between Record Groups and From-Clause Datasource?
    Thanks.
    Clayton.

    Thanks.
    That's exactly the problem I have. I don't want to use LOVs so I've been thinking about how to visualize the record group data using data blocks. Perhaps I'll just go with dynamically building the From-Clause.
    I've looked into stored procedure based blocks a bit; it was confusing for me. Are the stored procedures stored in the database or are they defined in the form?

  • Recording, grouping and playing an action...I am stumped!

    First I will start by mentioning  I am working with CS6. Recently I have  been recording a few actions that I like to run on a lot of my photos. Before I am done recording these actions I like to group them. Here is where the problem comes into play however...First time I play the action it shows up perfectly in the layer  panel. The 2nd,3rd attempt an  so on, the action that  is grouped (the same action or another grouped action) will show up all jumbled in the layers panel. Sometimes the adjustment layers show up outside of the group while others the group appears to have "eaten" the first group of actions I ran. Am I missing something why cant  I stack the actions I have written?

    glissonamanda wrote:
    Before I am done recording these actions I like to group them.
    Why are you trying to record steps like moving actions to group them and such.  You should stop recording the actions.  Then move, group and organize them the way you want. After that you should save all the action set you messed with so you don't loose the new actions you recorded and have save them organized and grouped the way you want.  If you record steps the move and copy actions mess with actions when you play the action these steps are recorded in the action will more then likely mess up actions and the grouping you did.
    Post a screen capture of the action steps of the action your having a problem with. Have you looked at waht is recorded in the action?

  • LOV with 3 record groups

    I have two LOV s one in the mainform and one in the subform. If I select one category from the list in the mainform LOV. In the subform LOV has to change it's record group (3 record groups) depending on the category selected in the mainform LOV. Please help. I am pasting the code I wrote. I tried it in the NEW ITEM INSTANCE TRIGGER, NEW BLOCK INSTANCE TRIGGER (datablock for the 2nd LOV with 3 record groups) and in the NEW FORM INSTANCE TRIGGER. Please help. Thank you.
    DECLARE
    lov_id1 LOV;
         --val          boolean;
              rg_id1 RECORDGROUP;
         rg_id2 RECORDGROUP;
              rg_id3 RECORDGROUP;
    BEGIN
    lov_id1 := FIND_LOV ('ACTIVITYTYPE_LOV');
         rg_id1 := FIND_GROUP('ACTIVITYTYPE_RG1');
         rg_id2 := FIND_GROUP('ACTIVITYTYPE_RG2');
         rg_id3 := FIND_GROUP('ACTIVITYTYPE_RG3');
    --     val := SHOW_LOV(lov_id1, 32, 48);
    IF
         GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1' AND :YOUTH_GOALS.GOAL_TYPE = 'EXIT COUNSELING'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id1');
         ELSIF
         GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1' AND :YOUTH_GOALS.GOAL_TYPE = 'COMPLETE TRAINING'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id1');
              ELSIF
         GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1' AND :YOUTH_GOALS.GOAL_TYPE = 'VOCATIONAL TRAINING'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
              ELSIF
         :YOUTH_GOALS.GOAL_TYPE = 'GRADUATE FROM HIGH SCHOOL'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
              ELSIF
         :YOUTH_GOALS.GOAL_TYPE = 'IMPROVE ACADEMIC PERFORMANCE'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
              ELSIF
         :YOUTH_GOALS.GOAL_TYPE = 'OBTAIN GED'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id2');
              ELSIF
         :YOUTH_GOALS.GOAL_TYPE = 'NON-ACADEMIC'AND GET_LOV_PROPERTY(lov_id1,GROUP_NAME ) = 'rg_id1'
         THEN SET_LOV_PROPERTY(lov_id1,GROUP_NAME,'rg_id3');
         END IF;
    end;

    try on when-validate-item or on POST-CHANGE
    Regards,
    Danish Hayder

  • Lov & record group problem

    Hi
    I have to achieve this task.
    I have "company_list" record group and "company_list" lov
    I am form layout style. I am in Enter-query. Then give some value to any field. Then Click execute-query. Its retreiving some records.
    Now if I click the LOV can I show only those records currently I have retreived.
    I have following trigger on button pressed.
    It is giving 1)error Populating group.2)cannot create group company_list 3) error_populating group.
    Anybody pl help me.
    Christy.
    DECLARE
    cur_blk VARCHAR2(40) := :System.Cursor_Block;
    last_qry varchar2(2000);
    bk_id Block;
    rg_name VARCHAR2(40) := 'COMPANY_LIST';
    rg_id RecordGroup;
    errcode number;
    BEGIN
    bk_id := Find_Block(cur_blk);
    last_qry := Get_Block_Property( bk_id, LAST_QUERY);
    rg_id := Find_Group('COMPANY_LIST');
    IF NOT Id_Null(rg_id) THEN
    DELETE_GROUP(rg_id);
    END IF;
    rg_id := Create_Group(rg_name);
    errcode:=Populate_Group_With_Query(rg_id,last_qry);
    end;

    I think that you have to use Create_Group_From_Query() instead of Create_Group():
    rg_id := Create_Group_From_Query(rg_name);
    Helena
    null

  • Assigning different record groups to a single LOV

    I have an LOV named as ship_refrence and this is how i display
    DECLARE
         a_value_chosen BOOLEAN;
    BEGIN
         a_value_chosen := Show_Lov('ship_refrence');           
    END; and the corresponding query for
    the RG1 is
    SELECT ALL TBLOBLIGATION.MATID, TBLOBLIGATION.MATCODE, TBLOBLIGATION.DESCRIPTION,
    TBLOBLIGATION.PARTNO, TBLOBLIGATION.DESCRIPTION1, TBLOBLIGATION.PARTNO1, TBLOBLIGATION.MANUFACTURER,
    TBLOBLIGATION.NETYPE, TBLOBLIGATION.CAT2, TBLOBLIGATION.CAT3,
    TBLOBLIGATION.CAT5, TBLOBLIGATION.CAT6, TBLOBLIGATION.CAT7, TBLOBLIGATION.COMMCODE,
    TBLOBLIGATION.NSMCODE, TBLOBLIGATION.UNIT_TYPE_ID
    FROM TBLOBLIGATION Now i have created
    RG2
    select matcode,description,partno1,description1,partno1 from tblobligation where cat2!='C'
    RG3
    select matcode,description,partno1,description1,partno1 from tblobligation where cat2='C'now the thing is I want my default LOV which has been using rg1 to use RG2 if the billtype is 'Send it to site' or else use RG3 if it is 'Send it to Consumed'
    Edited by: Suhail Faraaz on Jan 29, 2011 12:35 AM

    i have solved it.. by creating 3 different LOV for the record group and under when button pressed i have written this
    Declare
         a_value_chosen BOOLEAN;
    BEGIN
         if
              :shipbill.billtype
              in ('Send it to staff','Send it to store','send it to repair','Received from staff','Received from site','Received from store','Received from STC')
              then
         a_value_chosen := Show_Lov('ship_refrence');
         else     
         if :shipbill.billtype='Send it to site'
              then
              a_value_chosen :=Show_Lov('RG_SITE');
         else
              if
                   :shipbill.billtype ='Send it to consumed'
                   then
                        a_value_chosen :=Show_Lov('RG_CONSUMED');
         end if;
         end if;
         end if;     
    END;
    END;

  • Dynamic creation of record group

    Hi
    Can anyone suggest me with an example about how to create a dynamic record group and attach it to a lov ?
    Regards

    Hi,
    Thanks for your reply
    DECLARE
    rg_name VARCHAR2(40) := 'COMPANY_RANGE';
    rg_id RecordGroup;
    errcode NUMBER;
    lov_id LOV;
    BEGIN
    :System.Message_Level := 0;
    rg_id := Find_Group( rg_name );
    IF Id_Null(rg_id) THEN
    rg_id := Create_Group_From_Query( rg_name||'_TMP', 'select COMPANIES_ID from SYSMODULE.COMPANIES where 1=2');
    Set_LOV_Property(lov_id,GROUP_NAME,rg_name||'_TMP');
    rg_id := Create_Group_From_Query( rg_name, 'select COMPANIES_ID from SYSMODULE.COMPANIES');
    IF Id_Null(rg_id) THEN
    Message(' Create group failed');
    Message(' ',no_acknowledge);
    Raise Form_trigger_failure;
    End if;
    END IF;
    errcode := Populate_Group( rg_id );
    lov_id := Find_LOV('LOV7');
    Set_LOV_Property(lov_id,GROUP_NAME,rg_name);
    END;
    The above code, I have placed in when new form instance .. still the same error
    when new block instance --- same error
    in push button --- same error
    FRM-30048: Unable to find record group .
    LOV LOV7
    Form: DYNAMIC_LOV_CREATION
    FRM-30085: Unable to adjust form for output.
    Where i am going wrong ..
    Regards

  • Dynamic record group

    Please explain me step by step to create dynamic record group and populate it into my combo box.
    thanks
    rupal
    Edited by: rupearlkaushal on Jun 13, 2012 9:39 PM

    hi
    plz check out the following threads.
    Dynamic creation of record group
    and
    Dynamic Record Group
    LOV (List of Values)
    LOV is nothing but a form item which is used to provide list of values to a text field.
    Each LOV contains a Record Group which provides the data to the LOV
    Record Group
    A record groups contains the query which is used to populate the values to the LOV.
    To alter a list of values(LOV) of a text field, we should change the query of the
    record group which is attached to the corresponding LOV or we should create a
    new record group and attach it to the existing LOV.
    Note : We cant create a new LOV. But we can attach a exsiting LOV to a form field.Method 1: Changing the query of the existing Record group
    declare
    rg_id RECORDGROUP ;
    err number;
    lv_id lov;
    begin
    rg_id:=find_group('LOV4'); -- LOV4 is the name of the existing LOV
    if not id_null(rg_id) then
    err:=populate_group_with_query(rg_id,
             'select deptno from dept where dname=''SALES''');
    end if;
    lv_id:=find_lov('LOV4');
    set_lov_property(lv_id,group_name,rg_id);Method 2: Creating a new Record Group if doesn't exists
    declare
    rg_id recordgroup;
    pg_num number;
    lv_id lov;
    begin
    rg_id:=find_group('MYGROUP');  -- MYGROUP is the Group Name
    if id_null(rg_id) then
    rg_id:=create_group_from_query('MYGROUP','SELECT 100 deptno FROM dual');
    end if;
    pg_num:=populate_group(rg_id);
    lv_id:=find_lov('LOV4');sarah
    Edited by: Sarah on Jun 13, 2012 9:56 PM

  • Record groups

    Created a record group programmtically. I am now trying to use the DELETE_GROUP_ROW. I have in debug to check that the correct
    row number that I select is being picked up. When I do the delete row, I then do the show_lov. My row has not been deleted. The first
    time I run my form, my query works. Thereafter selecting from the LOV does not work, problem with the delete_group_row..
    Is there something I need to do before invoking show_lov. Please help.
    KP

    I am having the same problem. I need to update a value in the record group and I need to delete rows and I show that I am able to update the values and I see it via a debug statement, but when I show the LOV, it shows not updated.
    Did you find a solution?
    Similarily I need to delete.

  • Dynamically creating a Record Group based on Previously entered Record Grou

    Forms [32 Bit] Version 10.1.2.3.0 (Production)
    Hi,
    I know how to dynamically create a record group based on a query and putting the code in When new form instance.
    My query is. I have a form which has multiple Record Groups and the user wants to dynamically create subsequent groups based on previous groups.
    For example
    I have a record group with selects a Location,
    when the user selects the Location from a list of values
    the 2nd record group called 'Cost Centres' will have to filter out only those with the locations selected above.
    How can I populate the 2nd record group at run-time when I do not know what site the user will select?
    If I simply populate in when new form instance as in location and just select everything, the list of values populates.
    CC field is a LIST ITEM and the list style is a POP LIST, it is not required.
    I have put the code in the Location field in the when-list-changed trigger.
    I am getting this error:
    frm-41337: cannot populate the list from the record group
    here is the code:
    DECLARE
    v_recsql Varchar2(1000); -- The SQL for creating the Record Group.
    v_recgrp RecordGroup; -- Record Group
    v_status Number; -- Return Value of Populate_Group function.
    c_where VARCHAR2(1000);
    BEGIN
         IF :location = '1' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''02'')';
         ELSIF :location  = '2' THEN
              c_where := ' substr(cost_centre,1,2) in (''02'',''03'')';
         ELSIF :location   = '3' THEN
              c_where := ' substr(cost_centre,1,2) in (''01'',''11'',''07'')';
                   ELSE
              c_where :=  ' 1=1'; --EVERYTHING
         END IF;
    v_recsql := 'SELECT cost_centre, description  FROM   cost_centres  where '||c_where;
    -- Create the Record Group
    v_recgrp := CREATE_GROUP_FROM_QUERY('v_recgrp', v_recsql);
    IF NOT ID_NULL(v_recgrp)
    THEN -- No Error, record group has been successfully created.
    -- Populate Record Group
    v_status := POPULATE_GROUP('v_recgrp');
    IF v_status = 0
    THEN -- No Error. Record Group has been Populated.
    POPULATE_LIST('block.CC', 'v_recgrp');
    END IF; -- IF v_status = 0
    -- Delete the Record Group as it is no longer needed.
    DELETE_GROUP('v_recgrp');
    END IF; -- IF NOT ID_NULL(v_recgrp)
    END;thanks for your assistance.

    Hi,
    Once record status gets change for block you can not populate/repopulate the list item. Keep those list items as non-database item with different names and create different items as database orignal items. Than assign the values in WHEN-LIST-CHANGE trigger to the actual database items.
    -Ammad

  • Setting the update property of the row of a records group to false IN ORACL

    hello
    i have to populate a records group with the previous records user had entered as well as enable the user to enter new record in that RECORD GROUP IN ORACLE 6I FORMS.
    I want that previous record that user had entered caN NOT BE EDIT .USER CAN SEE THESE RECORDS ONLY AND ACCORDINGLY ADD NEW RECORDS IN SAME RECORD GROUP.
    PL TELL ME HOW TO DO THIS.
    THANKS & REGARDS
    VISHAL AGRAWAL

    I also try for which u mentioned earlier but it is like selectting individual records to display in my tablular record group.
    we are using following code for fetching data and displaying it into records group and also making all fetched record disabled.
    code is given below :
    PROCEDURE fetchdata(mf char) IS
    cursor c1 is select dateofmtrl,rm1,rm2,rm3 from rawmtrl_graph
    where
    dateofmtrl between TO_DATE(TO_CHAR(ADD_MONTHS(SYSDATE, 0),'YYYYMM'),'YYYYMM') and
    TO_DATE(TO_CHAR(ADD_MONTHS(SYSDATE, + 1),'YYYYMM'),'YYYYMM') - 1 and
    mtrl_flag = mf
    order by dateofmtrl ;
    r1 c1%rowtype;
    lstrec number;
    cnt number :=1;
    BEGIN
    go_block('dtl');
         last_record;
    lstrec:=:system.cursor_record;
    for ctr in 1..lstrec
    loop
         delete_record;
    end loop;     
    first_record;
         open c1;
         loop
              fetch c1 into r1;
              exit when c1%notfound;
              if :dtl.date1 is not null then
                   next_record;
                   end if;
                   :dtl.date1:=r1.dateofmtrl;
                        :dtl.opc:=r1.rm1;
                             :dtl.ppc:=r1.rm1;
                                  :dtl.total:=r1.rm1;          
         end loop;
         close c1;
    last_record;
    lstrec:=:system.cursor_record;
    first_record;
    for ctr in 1..lstrec
    loop
    SET_record_PROPERTY(:system.cursor_record,'dtl',ENABLED,PROPERTY_FALSE);
    SET_RECORD_PROPERTY(:SYSTEM.CURSOR_RECORD, 'dtl',UPDATE_ALLOWED,PROPERTY_FALSE);
    SET_RECORD_PROPERTY(:SYSTEM.CURSOR_RECORD, 'dtl',insert_allowed,PROPERTY_FALSE)
    next_record;
    end loop;     
         first_record;
    END;
    But it is not working...
    givinng the erros that no such property for set_record_property
    pl tell me how to modify the code to disable some selected raws in a record group............

  • Record Group Equivlant in ADF

    Hi Gurus,
    I am using jdev 11.1.2.3 and i am new in ADF. I need how we can create something like record group (Oracle Forms) in ADF.
    A record group is an oracle forms data structure that has a column/row framework similar to a database table.
    Actually i want to give some table interface in jsf page with checkboxes and want to perform some action on selected rows. I want send the selected rows ids to a function defined in Application Module and set the value for those ids. Here is my function
    public void setPickLocationForSelectedRows(String tagNumbers, String pickLocation) {
    updatePickLocationForSelectionImpl vo =
    (updatePickLocationForSelectionImpl)getupdatePickLocationForSelection1();
    vo.setWhereClause("TAG_NUMBER IN (" + tagNumbers + ")");
    vo.executeQuery();
    while (vo.hasNext()) {
    vo.next();
    updatePickLocationForSelectionRowImpl row = (updatePickLocationForSelectionRowImpl)vo.getCurrentRow();
    row.setPickLocation(pickLocation);
    getDBTransaction().commit();/*
    in the tagNumbers i want to pass selected rows ids. I don't want to traverse the whole table to scan if checkbox is selected. i want check i click on checbox its value will added to some kind of array or record group and then hit button function will call and pass these values to function.
    Any advice or Idea
    Thanks,

    That's what I call fighting the framework. Instead of trying to do it like forms, do it the adf style. Create yourself a multi select table and select t he records you want to change. Once they are selected (it works like in excel) you iterate over the selected rows and do your work.
    If you really need to use checkboxes to select rows you can use http://sameh-nassar.blogspot.de/2009/12/use-checkbox-for-selecting-multiple. or http://www.gebs.ro/blog/oracle/oracle-adf-row-selection-using-checkboxes/
    Timo

Maybe you are looking for