How to delete all the rows in table?

Hello

my table has an attribute of the selection (salt). By removing all the button is pressed, the following code is executed.
The problem is that all the selected lines except the last one are deleted. I don't know why the last line is not deleted.
Could you help me?
public void deleteAll(ActionEvent actionEvent) {
   DCIteratorBinding it = ADFUtils.findIterator(ITERATOR_NAME);
   RowSetIterator rit = it.getRowSetIterator();
   rit.reset();
   if (rit.first() != null) {
       Row row = rit.first();
       if (true == row.getAttribute("Sel")) {
           row.remove();
      }
   }
   while (rit.hasNext()) {
       Row row = rit.next();
       if (true == row.getAttribute("Sel")) {
          row.remove();
      }
   }
   it.getViewObject().clearCache();
   it.executeQuery();
}

You can try this

DCIteratorBinding it = ADFUtils.findIterator(ITERATOR_NAME);
RowSetIterator rit = it.getViewObject().createRowSetIterator(null);
rit.reset();
while (rit.hasNext()) {
        Row row = rit.next();
              if (true == row.getAttribute("Sel")) {
                 row.remove();
             }
          }
          it.getViewObject().clearCache();
          it.executeQuery();
rit.closeRowSetIterator();
return null;

Tags: Java

Similar Questions

  • How to delete all the rows in all the tables of a schema in Oracle?

    Hi all

    I want to delete all records of all tables of a schema and I think that there should be a statement for this but I don't know how?

    can help you?

    Published by: user8105261 on November 25, 2009 23:06
    BEGIN
       FOR i IN (SELECT table_name FROM user_tables)
       LOOP
          EXECUTE IMMEDIATE 'DELETE FROM' || i.table_name;
       END LOOP;
       COMMIT;
    END;
    

    (Y)

  • How to delete all the phone numbers in the blocked list?

    How can I delete all the phone numbers in the blocked list?

    I want to delete a large number of blocked number, but now I can't remove the numbers blocked by one, are there ways to eliminate several numbers or the complete list at the same time?

    Thank you!

    No sorry. The fastest method seems to be to go to settings > phone > blocked (or settings > Messages > blocked) and select the editing mode. You could make a suggestion to Apple that offer more options: http://www.apple.com/feedback/iphone.html

  • How to select all the rows in a Table

    Hello

    JDEV 11.1.1.2.0 work.

    I need to select all the lines all in the click of a button, how can I achieve this? Here is table unique selection/multi selection.

    someone can help me.

    Published by: user5802014 on June 30, 2010 08:32

    Rather than try to direct you to the message that I want to say, I'll just copy the code here with credit to Frank Nimphius

    The post is a hyperlink on the word present in the step 5 post of my "how to search in the forum" :)

    RichTable _table = employeesBackingBean.getEmployeeTable1();
       RowKeySet rks = new RowKeySetImpl();
      CollectionModel model = (CollectionModel)_table.getValue();
      int rowCount = model.getRowCount();
          for (int i = 0; i < rowCount; i++) {
               model.setRowIndex(i);
               //note that in the simple POJO case, the row key is the same
               //as the index. However, it would be wrong to just rely on this
               //because other models or custom table models my return a more
               //comples key. Therefore we iterate over the available rows to
               //obtain the keys.
               Object key = model.getRowKey();
               //add the row keys to the RowKeySet to mark selected
               rks.add(key);
           }
       _table.setSelectedRowKeys(rks);
       AdfFacesContext.getCurrentInstance().addPartialTarget(_table);
    
  • How to develop all the rows of the table of the tree when the page loads?

    Hi all

    I have tree than VO mere reference of table... I want to expand all table tree rows when the page loads... I already have initially developed property to true... but it only runs from first line of tree...

    Any help would be great-Jey

    In the backbean and that:

      private RowKeySetTreeImpl ps = new RowKeySetTreeImpl(true);
    
      public void setPs(RowKeySetTreeImpl ps)
      {
        this.ps = ps;
      }
    
      public RowKeySetTreeImpl getPs()
      {
        return ps;
      }
    

    In the jspx set table tree as disclosedRowKeys

    
    
  • Delete all the rows in a data control Bean

    I use JDeveloper 11.1.1.6

    In my case, I have a screen that interacts with a data control Bean I followed the steps in the following URL to create a Bean data control

    http://docs.Oracle.com/CD/E18941_01/tutorials/jdtut_11r2_36/jdtut_11r2_36.html

    My screen successfully interacts with the data control Bean. This form lives in a stream of delimited tasks (BTF). I can add lines using a link create insert and can delete rows as well. Once the user gets all the lines in the data of beans control they want inserted in a DB table, I can browse the data control Bean and publish those documents to the DB. It is possible for users to add rows to the data control Bean and then link to a new brand screen located in a different BTF that leaves lines in the data control Bean. Now, the user returns to the original screen. On his return, I would like to empty (erase all lines) for bean control data so that they have a new start. Could you please advise on what I need to do to be able to clear a data bean control when you enter a BTF

    You will need to add a method to your bean which clears the Collection that contains your data.
    You can then drag this method to your pageflow as a methodCall and invoke it when you navigate from one page to another.

  • How to get all the names a table display

    Hi all
    I try to get the names of all the points of view of a table. I tried to use the user_views table, but there is no column by specifying the name of the table.
    Is someone can you please tell me how I can get all the names display in a table.

    Thank you

    You will need to join with USER_VIEWS USER_DEPENDENCIES for the list of dependent views on a particular table.

  • How to store all the rows

    Hi Sir,
    I want to store all the lines of the examination table in a single object, which will be displayed in the page review.jsp, I have no idea

    servlet program
    ------------------------

    PST = con.prepareStatement ("insert into Review values (?,?)" ");
    pst.setString(1,name1);
    pst.setString(2,query);
    ins int = pst.executeUpdate ();
    PST. Close();

    PST = con.prepareStatement ("select * from revision");
    RS = PST. ExecuteQuery();
    While (RS. Next())
    {
    req.setAttribute ("name1", rs.getString (1));
    req.setAttribute ("query", rs.getString (2));


    }
    RequestDispatcher rd=req.getRequestDispatcher("/review.jsp");
    Rd.Forward (Req, res);

    JSP page
    -----------------
    < %
    Try
    {
    String name = request.getAttribute ("name1") m:System.NET.SocketAddress.ToString ();
    out.println (Name);
    }
    catch (System.Exception e)
    {
    e.printStackTrace ();
    }
    % >


    Thank you

    Create a simple grain of POJO to hold all the values of a line and paste these items into an ArrayList.

  • Unable to delete all the rows in the table

    Hi all

    According to the time range I'm removing the equipment data and travel work shifts then insert new data of mth_site_shift_definitions in the work day moves and equipment move the table. If mth_Site_shift_definitions table has three rows for a given plant and I delete the two lines in a time then I am able to delete data for movement of equipment and work sihfts table, and then click Insert data in a single row in these two tables, but when I try to remove the last line I get an SQL exception. Can someone tell me the reason for this exception. In fact, I want that if we delete the last row also mth_Site_shift_definitions then the corresponding data should also get demolished transfers of equipment and work instead of give to the exception. I have this code:

    PROCEDURE GENERATE_SHIFTS (p_plant_fk_key in NUMBER,
    p_start_date IN this update,
    p_end_date IN DATE)
    IS
    -declation of local variable

    l_plant_fk_key NUMBER;
    l_sysdate DATE: = sysdate; - sysdate variable
    l_last_update_system_id NUMBER;
    l_last_update_date DATE;
    l_plant_pk VARCHAR2 (120);
    l_start_time varchar2 (8); - variable to store the start time
    l_end_time VARCHAR2 (8); - variable to store end_time
    l_graveyard VARCHAR2 (30);
    number of l_shift_num;
    l_shift_name VARCHAR2 (240);
    l_line_num NUMBER;
    l_start_date DATE;
    l_end_date DATE;
    NUMBER of l_start_time1;
    NUMBER of l_end_time1;
    l_equipment_fk_key NUMBER;
    NUMBER of l1_plant_fk_key;
    Number of N;
    l_creation_system_id NUMBER;
    -l_organization_code VARCHAR2 (120);
    l_system_fk_key NUMBER;
    l_site_id NUMBER;
    l_entity_pk_key NUMBER;
    l_entity_name VARCHAR2 (100);
    l_entity_type VARCHAR2 (30);
    l_production_entity VARCHAR2 (1);
    l_shift_workday_pk_key NUMBER;
    DATE of l1_shift_date;
    l_from_date DATE;
    l_to_date DATE;
    l_shift_type VARCHAR2 (30);
    -l_graveyard_shift NUMBER;
    CURSOR c_shift_def IS

    Select the value of start_time, end_time, cemetery, shift_num, shift_name, shift_type
    -in l_start_time, l_end_time, l_graveyard, l_shift_num, l_line_num, l_shift_name, l_shift_type
    Of

    mth_site_shift_definitions where plant_fk_key = p_plant_fk_key;

    BEGIN

    l_plant_fk_key: = p_plant_fk_key;
    l_start_date: = p_start_date;
    l_end_date: = p_end_date;
    l_system_fk_key: = 'MTH_UTIL_PKG. ' "MTH_UA_GET_VAL"();

    -DELETE FROM mth_workday_shifts_D WHERE plant_fk_key = l_plant_fk_key and shift_date > = l_start_date;
    DELETE FROM mth_workday_shifts_D WHERE plant_fk_key = l_plant_fk_key and Trunc (from_date) > = l_start_date AND Trunc (from_date) < = l_end_date;
    DELETE FROM mth_workday_shifts_D WHERE plant_fk_key = l_plant_fk_key and shift_date > = l_start_date AND shift_date < = l_end_date;
    DELETE FROM mth_equipment_shifts_d WHERE availability_date > = l_start_date AND availability_date < = l_end_date
    AND equipment_fk_key IN (SELECT DISTINCT (Nvl(a.equipment_fk_key,0))
    OF mth_equipment_shifts_d a, mth_equipments_d b WHERE the b.equipment_pk_key = a.equipment_fk_key AND b.plant_fk_key = l_plant_fk_key
    UNION ALL
    Separate (SELECT Nvl(a.equipment_fk_key,0))
    OF mth_equipment_shifts_d a, mth_resources_d b WHERE the b.resource_pk_key = a.equipment_fk_key AND b.plant_fk_key = l_plant_fk_key

    UNION ALL
    Separate (SELECT Nvl(a.equipment_fk_key,0))
    OF mth_equipment_shifts_d a, mth_plants_d b WHERE the b.plant_pk_key = a.equipment_fk_key AND b.plant_pk_key = l_plant_fk_key

    UNION ALL
    Separate (SELECT Nvl(a.equipment_fk_key,0))
    OF mth_equipment_shifts_d a, mth_equip_entities_mst b WHERE the b.entity_pk_key = a.equipment_fk_key AND b.plant_fk_key = l_plant_fk_key
    );

    FOR l_shift_def IN c_shift_def
    LOOP

    l_start_time: = l_shift_def.start_time;
    l_end_time: = l_shift_def.end_time;
    l_graveyard: = l_shift_def.graveyard;
    l_shift_num: = l_shift_def.shift_num;
    -l_line_num: = l_shift_def.line_num;
    l_shift_name: = l_shift_def.shift_name;
    l_shift_type: = l_shift_def.shift_type;



    Select plant_pk in the mth_plants_d l_plant_pk where plant_pk_key = l_plant_fk_key;
    -SELECT organization_code INTO l_organization_code FROM mth_organizations_l WHERE plant_fk_key =
    -l_plant_fk_key;
    N: = l_end_date-l_start_date;

    because me in 1... N + 1
    LOOP



    l_last_update_system_id: = - 99999.
    l_last_update_date: = l_sysdate;
    l_creation_system_id: = - 1;
    l_start_time1: = TO_NUMBER (SUBSTR (l_start_time, 1, 2)) * 3600 +.
    TO_NUMBER (substr (l_start_time, 4, 2)) * 60 +.
    TO_NUMBER (substr (l_start_time, 7, 2));

    l_end_time1: = TO_NUMBER (SUBSTR (l_end_time, 1, 2)) * 3600 +.
    TO_NUMBER (substr (l_end_time, 4, 2)) * 60 +.
    TO_NUMBER (substr (l_end_time, 7, 2));


    INSERT INTO mth_workday_shifts_D (shift_workday_pk_key, shift_workday_pk,
    shift_date, shift_date_julian, plant_fk_key, shift_type,
    from_date, to_date, shift_num, graveyard_shift, shift_name,
    source_org_code, system_fk_key,
    CREATION_DATE, last_update_date, creation_system_id,
    last_update_system_id)
    VALUES (mth.mth_workdays_shifts_s.nextval,
    TO_CHAR (DECODE (GREATEST (l_start_time1, l_end_time1),
    l_start_time1, l_start_date,
    l_start_date) + ((TO_NUMBER (SUBSTR (l_start_time, 1, 2)) +))
    (TO_NUMBER (SUBSTR (l_start_time, 4, 2)) / 60) +.
    ((TO_NUMBER (SUBSTR (l_start_time, 7, 2)) / 3600)) (/ 24),
    "(AAAAMMJJ-hh24:mi:ss') ' | '-'|" l_shift_num | » -'|| l_plant_pk,
    DECODE (GREATEST (l_start_time1, l_end_time1), l_start_time1,)
    l_start_date + Decode (l_shift_def.graveyard, 'SED', 1, 0), l_start_date).
    TO_NUMBER (TO_CHAR (l_start_date, 'J')),
    l_plant_fk_key, l_shift_type, l_graveyard,
    l_start_date + ((TO_NUMBER (SUBSTR (l_start_time, 1, 2)) +))
    (TO_NUMBER (SUBSTR (l_start_time, 4, 2)) / 60) +.
    ((TO_NUMBER (SUBSTR (l_start_time, 7, 2)) / 3600)) (/ 24),
    DECODE (GREATEST (l_start_time1, l_end_time1), l_start_time1,)
    l_start_date + ((TO_NUMBER (SUBSTR (l_end_time, 1, 2)) +))
    (TO_NUMBER (SUBSTR (l_end_time, 4, 2)) / 60) +.
    ((TO_NUMBER (SUBSTR (l_end_time, 7, 2)) / 3600)) (/ 24) + Decode (l_shift_def.graveyard, 'SED', 1, 0),
    l_start_date + ((TO_NUMBER (SUBSTR (l_end_time, 1, 2)) +))
    (TO_NUMBER (SUBSTR (l_end_time, 4, 2)) / 60) +.
    ((TO_NUMBER (SUBSTR (l_end_time, 7, 2)) / 3600)) ((/ 24)),
    l_shift_num, l_shift_name, null, l_system_fk_key.
    l_sysdate, l_sysdate,
    (l_creation_system_id, l_last_update_system_id);
    l_start_date: = l_start_date + 1;


    END LOOP;
    COMMIT;



    l_start_date: = p_start_date;


    IF SUPERIOR (l_shift_type) = "BOTH" THEN
    INSERT INTO mth_equipment_shifts_d (equipment_fk_key, availability_date, shift_workday_fk_key, from_date, To_Date, line_num, availability_flag, entity_type, creation_date, last_update_date, creation_system_id,
    (last_update_system_id)

    SELECT b.entity_pk_key entity_pk_key, a.shift_date shift_date, a.shift_workday_pk_key shift_workday_fk_key, a.from_date from_date, To_Date, 1 line_num, 'Y', a.to_date
    b.entity_type entity_type, SYSDATE-1, SYSDATE,-99999

    -IN l_site_id, l_entity_pk_key, l_entity_name, l_entity_type, l_production_entity,.
    -l_shift_workday_pk_key, l1_shift_date, l_from_date, l_to_date
    Mth_workday_shifts_d a.,
    (
    SELECT site_id plant_fk_key, entity_pk_key, entity_name, entity_type, production_entity production_entity
    OF mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, "SITE", production_site production_entity
    OF mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, nom_entite resource_name, "RESOURCE", production_resource production_entity
    OF mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, "EQUIPMENT", production_equipment production_entity
    OF mth.mth_equipments_d
    ) b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key = l_plant_fk_key
    AND shift_date > = l_start_date
    AND shift_date < = l_end_date
    AND SUPERIOR (a.shift_type) = "BOTH".
    - AND a.line_num = l_line_num
    AND a.shift_num = l_shift_num
    AND a.shift_name = l_shift_name
    AND l_shift_def.start_time = To_Char(from_date,'HH24:MI:SS')
    AND l_shift_def.end_time = To_Char(To_Date,'HH24:MI:SS'));)

    END IF;
    IF SUPERIOR (l_shift_type) = 'PROD-SHIFT' THEN
    INSERT INTO mth_equipment_shifts_d (equipment_fk_key, availability_date, shift_workday_fk_key, from_date, To_Date, line_num, availability_flag, entity_type, creation_date, last_update_date, creation_system_id,
    (last_update_system_id)

    SELECT b.entity_pk_key entity_pk_key, a.shift_date shift_date, a.shift_workday_pk_key shift_workday_fk_key, a.from_date from_date, To_Date, 1 line_num, 'Y', a.to_date
    b.entity_type entity_type, SYSDATE-1, SYSDATE,-99999

    -IN l_site_id, l_entity_pk_key, l_entity_name, l_entity_type, l_production_entity,.
    -l_shift_workday_pk_key, l1_shift_date, l_from_date, l_to_date
    Mth_workday_shifts_d a.,
    (
    SELECT site_id plant_fk_key, entity_pk_key, entity_name, entity_type, production_entity production_entity
    OF mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, "Site", production_site production_entity
    OF mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, nom_entite resource_name, "Resource", production_resource production_entity
    OF mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, "Equipment", production_equipment production_entity
    OF mth.mth_equipments_d
    ) b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key = l_plant_fk_key
    AND shift_date > = l_start_date
    AND shift_date < = l_end_date
    AND b.production_entity = 'Y'
    AND SUPERIOR (a.shift_type) = "PROD-SHIFT."
    - AND a.line_num = l_line_num
    AND a.shift_num = l_shift_num
    AND a.shift_name = l_shift_name
    AND l_shift_def.start_time = To_Char(from_date,'HH24:MI:SS')
    AND l_shift_def.end_time = To_Char(To_Date,'HH24:MI:SS'));)

    END IF;
    IF SUPERIOR (l_shift_type) = 'NON-PROD-SHIFT' THEN
    INSERT INTO mth_equipment_shifts_d (equipment_fk_key, availability_date, shift_workday_fk_key, from_date, To_Date, line_num, availability_flag, entity_type, creation_date, last_update_date, creation_system_id,
    (last_update_system_id)

    SELECT b.entity_pk_key entity_pk_key, a.shift_date shift_date, a.shift_workday_pk_key shift_workday_fk_key, a.from_date from_date, To_Date, 1 line_num, 'Y', a.to_date
    b.entity_type entity_type, SYSDATE-1, SYSDATE,-99999

    -IN l_site_id, l_entity_pk_key, l_entity_name, l_entity_type, l_production_entity,.
    -l_shift_workday_pk_key, l1_shift_date, l_from_date, l_to_date
    Mth_workday_shifts_d a.,
    (
    SELECT site_id plant_fk_key, entity_pk_key, entity_name, entity_type, production_entity production_entity
    OF mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, "Site", production_site production_entity
    OF mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, nom_entite resource_name, "Resource", production_resource production_entity
    OF mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, "Equipment", production_equipment production_entity
    OF mth.mth_equipments_d
    ) b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key = l_plant_fk_key
    AND shift_date > = l_start_date
    AND shift_date < = l_end_date
    AND b.production_entity =' no
    AND SUPERIOR (a.shift_type) = "NON-PROD-SHIFT."
    - AND a.line_num = l_line_num
    AND a.shift_num = l_shift_num
    AND a.shift_name = l_shift_name
    AND l_shift_def.start_time = To_Char(from_date,'HH24:MI:SS')
    AND l_shift_def.end_time = To_Char(To_Date,'HH24:MI:SS'));)

    END IF;

    COMMIT;
    END LOOP;

    l_start_date: = p_start_date;

    because me in 1... N + 1
    LOOP


    l_last_update_system_id: = - 99999.
    l_last_update_date: = l_sysdate;
    l_creation_system_id: = - 1;

    INSERT INTO mth_workday_shifts_D (shift_workday_pk_key, shift_workday_pk,
    shift_date, shift_date_julian, plant_fk_key, shift_type, graveyard_shift, from_date, to_date, shift_num, shift_name, source_org_code, system_fk_key,
    CREATION_DATE, last_update_date, creation_system_id,
    last_update_system_id)
    VALUES (mth.mth_workdays_shifts_s.nextval, l_start_date |) » -'|| l_plant_pk | 'MTH_UTIL_PKG '. "MTH_UA_GET_VAL"(), l_start_date, TO_NUMBER (TO_CHAR (l_start_date, 'J')),
    l_plant_fk_key, 'TWO', null, null,
    NULL, null, FND_PROFILE. VALUE ('MTH_CATCH_ALL_NAME'), null, l_system_fk_key,
    l_sysdate, l_sysdate, l_creation_system_id, l_last_update_system_id);
    l_start_date: = l_start_date + 1;


    END LOOP;
    COMMIT;
    l_start_date: = p_start_date;

    INSERT INTO mth_equipment_shifts_d (equipment_fk_key, availability_date, shift_workday_fk_key, from_date, To_Date, line_num, availability_flag, entity_type, creation_date, last_update_date, creation_system_id,
    (last_update_system_id)

    SELECT b.entity_pk_key entity_pk_key, a.shift_date shift_date, a.shift_workday_pk_key shift_workday_fk_key, Trunc (a.shift_date) from_date, Trunc (a.shift_date) To_Date, 1 line_num, 'Y ',.
    b.entity_type entity_type, SYSDATE-1, SYSDATE,-99999

    -IN l_site_id, l_entity_pk_key, l_entity_name, l_entity_type, l_production_entity,.
    -l_shift_workday_pk_key, l1_shift_date, l_from_date, l_to_date
    Mth_workday_shifts_d a.,
    (
    SELECT site_id plant_fk_key, entity_pk_key, entity_name, entity_type, production_entity production_entity
    OF mth.mth_equip_entities_mst
    UNION ALL
    SELECT plant_pk_key site_id, plant_pk_key entity_pk_key, plant_name entity_name, "Site", production_site production_entity
    OF mth.mth_plants_d
    UNION ALL
    SELECT plant_fk_key site_id, resource_pk_key entity_pk_key, nom_entite resource_name, "Resource", production_resource production_entity
    OF mth.mth_resources_d
    UNION ALL
    SELECT plant_fk_key site_id, equipment_pk_key entity_pk_key, equipment_name entity_name, "Equipment", production_equipment production_entity
    OF mth.mth_equipments_d
    ) b
    WHERE b.site_id = a.plant_fk_key
    AND a.plant_fk_key = l_plant_fk_key
    AND shift_date > = l_start_date
    AND shift_date < = l_end_date
    AND SUPERIOR (a.shift_type) = "BOTH".
    AND a.FROM_DATE IS NULL
    AND one. To_Date IS NULL
    - AND a.line_num = NULL
    AND a.shift_num IS NULL
    );



    -exception handling
    -EXCEPTION
    -WHEN NO_DATA_FOUND THEN
    -RAISE_APPLICATION_ERROR (-20001,
    -"An exception occurred');

    END GENERATE_SHIFTS;

    Thanks a lot for your help.
    Kind regards
    Amrit

    You have assigned data to N in the loop of the cursor which doesnot have given.

    N := l_end_date-l_start_date;
    

    Assign the value out of the loop as it doesnot has nothing to do with the cursor data.

    Twinkle

  • JDeveloper 11 g: how to get all the rows in a table of database application

    Hi all!

    I'm developing an application with JDeveloper 11 g, as the subject of the show.
    So I'm suppose to use some of the data that are in the database table.
    So, I got the View object, which is where I want to take data, to the datamodel.
    And after that, I use the following line in my serviceClass.java:
    public String method(){
            String truc = null;
            getViewName().setRangeSize(-1);
            getViewName().setRangeStart(0);
            getViewName().executeQuery();
    
    //I do my treatment here
    return truc
    }
    When the application is run, it stop just before the line "getViewName ().setRangeSize(-1);
    So, I think that it is the point of locking.
    Someone can help me.

    Thank you to

    Nystan

    Hello

    check if 'viewObjectName' is the name that he presents in the ApplicationModule data model. This isn't the ViewObject name you are after the instance of the object View, which is a difference

    Frank

  • How can I delete all the email our except one

    How to delet all the email our except one

    Try the tools | Accounts show the accounts and then you can delete what you want.  If this does not help, then check out the suggestions of Fazil.

    Steve

  • What I have to delete all the emails by hand or I can delete them all at the same time?

    How do delet all the emails at once?

    You can delete several at once. Press the button "Edit" in the mailbox, select e-mail then press on "trash".

    they must be selected one by one, there is no "select all" I remember

    If you have a lot to remove you may wish to do so outside the mail application. If your email provider has a web interface, use it. For example, I have yahoo mail, I use safari to go to yahoo.com and connect to my mail. then I will be able to select many emails at once (or maybe if your email provider supply)

    Can be faster if you have dozens, hundreds of delete

  • How to access all the lines one by one, a table ADF via managed bean

    Hi Experts,

    Hi I'm new in the ADF.

    Could someone help me to fix the case below?

    Scenario - I have a table called Test_T1 that have 4 columns C1, C2, C3, C4. Creation of EO, VO and AM for test_t1.
    When created in pages ADF, I selected the option "automatically exposed components UI in new managed bean" (mynewmanagedbean.java).
    Control data drag and drop Test_T1 table in the page as a table of the ADF.
    Set the properties is read-only C1, C2, C3 and C4 is an input text.
    Add after the table and attathed button action on the mynewmanagedbean.java bean managed.
    At the time of the Test_T1 page filled with a few No.. lines (such as 9).
    How can I access all the lines above through the key without selection of these.
    In fact, I want to print all the rows of the table in the log at the time to press the button.

    Thanks in advance.

    Sorry for the delay, the code was copied from another test case. You can work directly with the line...
    I created a new test case based on the departments of the HR schema table:

    import oracle.adf.model.BindingContext;
    import oracle.adf.model.bean.DCDataRow;
    import oracle.adf.model.binding.DCBindingContainer;
    import oracle.adf.model.binding.DCIteratorBinding;
    import oracle.adf.share.logging.ADFLogger;
    
    import oracle.jbo.Row;
    
    public class DumpRows
    {
        private static ADFLogger _logger = ADFLogger.createADFLogger(DumpRows.class);
        public DumpRows()
        {
        }
    
        public String cb3_action()
        {
            DCBindingContainer bindings =
            (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
            DCIteratorBinding dcIteratorBindings =
            bindings.findIteratorBinding("DepartmentsView1Iterator");
    
            // Get all the rows of a iterator
            Row[] rows = dcIteratorBindings.getAllRowsInRange();
            for (Row row : rows) {
                String depname = (String)row.getAttribute("DepartmentName");
                _logger.info(depname);
            }
            return null;
        }
    }
    

    As you do not have the class of line interface build you must get the attributes in their names. Be careful here, because any misspelling is cought only when you run the application.

    Timo

  • I deleted all the games that come with Windows XP including Solitaire. How can I get that back?

    I deleted all the games that come with Windows XP including Solitaire.  How can I get that back?

    Hi andypily1,

    Welcome to the Microsoft Answers community.

    Try the steps one by one and check below.

    STEP 1:
    How do I add or remove games in Windows XP
    http://support.Microsoft.com/kb/307768
     

    STEP 2:

    In most cases if the games are deleted from the computer files will remain on the computer.

    I suggest that you are looking for game files in the system32 folder.

    Later, click on Start menu click on run and type c:\\windows\system32 in the following search of the window for the file of games like free cell. If you get the files in the system32 folder then copy the file to c:\\program files\start menu\ later in the game folder.

    STEP 3:
    If fails it above steps, try a system restore to the point when the game was available on the computer.
     
    See the link below to learn how to perform the system restore.

    How to restore Windows XP to a previous state
    http://support.Microsoft.com/kb/306084

    Hope this information is useful.
    Let me know if it worked.
     
    Thank you, and in what concerns:
    Umesh P - Microsoft Support

  • How can I delete all the music on my rocket drive using my computer?

    How can I delete all the music on my drive using my computer? I printed the user manual, but the statement is vague.

    Please help a frustrated old man,

    Thank someone who answers this time (even before ayone answers that I tend to forget to say thanks for the help)

    misterhy

    [email protected]

    You can (and should) get the free mp3tag: http://www.mp3tag.de/en/

    Install mp3tag.  When you install, let it be added to the context menus (an option during installation).

    Open mp3tag and in tools, Options, Tags, Mpeg do option Write ID3v2.3 ISO-8859-1. Those are tags favorite rocket, and once make you it by default, whenever you save tags in mp3tag you will get tags Fuze and respectful.

    Your albums may not be labeled at all, or may be marked in ID3v1, who will not read the "rocket". So he goes to the title, if there is a title tag or file name if there are no tags.

    You can now right click on an album folder and see mp3tag as an option to open it. When you click mp3tag, you'll see the files listed. Put them in order from top to bottom - you can try clicking on the header of the track-number or the name of the header file if they are 01-Track 1. If you can align them up and down, highlight all the and click Dial automatic tools Wizard with the option of leading zeros. Bingo: Track numbers 01, 02, 03, and they will play in the order.

    Sometimes people put numbers to track on the file names and they list in alphabetical order by song title - not good. If the "rocket" Impossible to find track numbers and the name of the file is FirstSongTitle-01 (rather than 01-FirstSongTitle), the "rocket" will play them in alphabetical order by name of file: FirstSong, FifthSong, FourthSong, SecondSong, SixthSong, ThirdSong. Then you will have to put in one of the track numbers.

Maybe you are looking for

  • With 2 monkeys roaming network connected to the internet

    Hello My apologies if this has been discussed (I did some search but did not find anything useful). I have the question realted following a change in my network topology: current installation: -Cable modem is connected to the WAN port on my Time Caps

  • Download error 204 on iTunes trailers

    Anyone else having a problem downloading trailers from iTunes recently. It has been about two months continues to receive the following: We complete your iTunes store request. An unknown error occurred (204). There was an error in the iTunes Store. P

  • Screw developed in XP does not not Linux

    Hello After calling my NOR national supports an engineer told me that the code developed under XP is compatible with LV running Linux (OpenSUSE 11.0). But some of my crash LV Linux VI (see some of them screw closed). Every time, when to raise LV, the

  • cutting disk all in one card reader wount showup in cumputer

    only show two cd dvd players that I have. It should show an A / drive but wount?

  • HP 7510 Duplex problem, scaling of axis of ordinates?

    I read about the problem with additional/updated margins across the vertical duplex enabled on HP OfficeJet 6500. I also found this question in a review of HP Photosmart 7510 [ http://www.trustedreviews.com/hp-photosmart-7510_Printer_review_performan