deleting several lines in a report?

db11gxe, apex 4.0, firefox 24,

How to delete several lines in a report at the same time?

Thank you

Hi newbi_egy,

Here's a demo with a few steps that can be used in your scenario-

(1) this is the query for a report on the emp table that has column empno with values single-

SELECT APEX_ITEM.CHECKBOX(1,empno) " ", ename, job FROM   emp ORDER  by 1

(2) a button Delete is created that submits the page.

(3) a sur-soumettre the process is created with point process on submit - after calculations and Validations to determine that the sub process is running when you click the button remove.

BEGIN
FOR i in 1..APEX_APPLICATION.G_F01.count
LOOP
delete from emp where empno=APEX_APPLICATION.G_F01(i);
END LOOP;
END;

I hope this could help you.

Kind regards

Das123

Tags: Database

Similar Questions

  • How do to convert two points separated in several lines in the report, the column values

    Hi all

    I want to display two separate points of values in a column, in a row of multi in report.

    For example I have a Column1 in an array with the value 'A', column2 has the value "1".

    I want to show in a report of three lines using these two columns as

    Column1 Column2
    A 1
    B 1
    A s

    Here's one way:

    SQL> create table test (col1 varchar2(20), col2 number);
    
    Table created.
    
    SQL> insert all
      2    into test values ('A:B:C', 1)
      3    into test values ('Dg:Ezs', 2)
      4  select * from dual;
    
    2 rows created.
    
    SQL> select
      2    t.col2,
      3    regexp_substr(t.col1, '\w+', 1, t2.column_value) c1
      4  from test t,
      5    table(cast(multiset(select level
      6                        from dual
      7                        connect by level <= length(t.col1) - length(replace(t.col1, ':', '')) + 1
      8                       ) as sys.odcinumberlist )) t2
      9  order by 2, 1;
    
          COL2 C1
    ---------- --------------------
             1 A
             1 B
             1 C
             2 Dg
             2 Ezs
    
    SQL>
    

    Published by: little-foot 31 January 2012 10:13

  • How to delete several lines in the details Table with PRIMARY KEY = ("VID", "LINEITEM")?

    Mr President

    My worm Jdev is 12.2.1.

    I have master tables / details.

    I have 2 lines for each PRIMARY KEY = ("VID", "LINEITEM") as below in the Details table.

    delete.png

    Please help how to get a button on a jsf page to remove these two lines at a time.

    Concerning

    So, in your app (data model) module, you have a master relationship / typical retail:

    And the relationship between them is based on some ViewLink

    Now go to the ViewLink, relationship, accessor.

    Take a look at the Destination accessor.

    Generate accessor object to check and give a name Acessor

    Then go to the master VO, Java and Include accessor, the class generate a display line:

    Go to the class view Java generated line, you'll find a method with the name of the accessor of the previous step, in the form of:

    public RowIterator getYourDetails...or_whaterever_IsAccessorName..() {
    }
    

    Now, in the same Java class, write the following Java method:

    public void removeDetails(){
      RowIterator details = getYourDetails...or_whaterever_IsAccessorName..(); // it is RowIterator over all details
      Row r = details.first();
      while (r != null) {
          r.remove();
          r = details.next();
      }
    }
    

    This method on the Cilent export line Interface:

    Finally, pass the data controls and drop this operation on the form as a button...

  • Hyperion Financial Reporting: Recover data from several lines of another grid

    Hey geniuses,.

    Don't know if this is the right place to ask questions on HFR...

    I have two grids: welcome and support. I tried to recover data supporting the grid, where there are 10 children report derived from a line of HFR lines. I intended to show all children of 10 lines in the report. I tried ".row grid [X] [X]" to recover data and < < MemberName > > to retrieve the name of the project, but only one line is presented in the main with the first name of line project (grid support) and report data sum of the total 10 rows (grid support).

    All good ideas?

    Thanks to a bouquet.

    Instead of the formula line insert a line of text and add the function

    >
    >
    >
    .....................................................

    The problem should be solved

    Concerning

    Celvin

    http://www.orahyplabs.com

  • Delete several bays

    I'm reading a text file. I have a simple question. I need to remove two rows in a table. I want to use the function remove the table. But I read that I can wire index only one entry. I have a total of 8 rows. I want to remove the first two lines of the table.

    Cited the help of LabVIEW, "you can delete several consecutive subdashboards both by the lengthof wire."

    Exactly how?

    Thanks in advance.


  • Get several lines with the request - please help

    Hello

    I have query that gives me the output below.
    select distinct a.*,cu1.usr_key,cu1.first_nm,cu1.last_nm
    from(
          select ng.grp_key, ng.grp_nm , gt.grp_typ_nm, stts.nm as grp_sts, ng.expiry_date, ng.updt_dttm, stts.stts_key
          from new_group ng, user_group ug, group_type gt, status stts
          where ug.grp_key = ng.grp_key and ng.grp_typ_key = gt.grp_typ_key and 
          ng.stts_key = stts.stts_key and
          ug.usr_grp_rl_typ_key = 1 and 
          lower(ng.grp_nm) like 'test foe%'
          union 
          select ng.grp_key, ng.grp_nm , gt.grp_typ_nm, sts.nm as grp_sts, ng.expiry_date, ng.updt_dttm, sts.stts_key
          from new_group ng, group_type gt, status sts
          where ng.grp_typ_key = gt.grp_typ_key and ng.stts_key = sts.stts_key and 
          lower(ng.grp_nm) like 'test foe%')a, common_user cu1, user_group ug1
    where cu1.stts_key = a.stts_key and cu1.usr_key = ug1.usr_key and ug1.usr_grp_rl_typ_key = 1 and ug1.grp_key(+) = a.grp_key;
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 09.38.34 29742 Sam Saed
    18345 enemy test remove Group organization DELETED 9 February 12 09.38.34 AM 3 29643 dummyName514 dummy
    18345 enemy test remove Group organization DELETED February 9, 12 09.38.34 AM 3 28917 TestMObileUser Gujral
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 27284 Rocky jegou 09.38.34
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28920 Bhavani Gujral 09.38.34
    18345 enemy test remove Group organization DELETED 9 February 12 09.38.34 AM 3 29645 dummyFName516 dummy
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 27316 Karthik Gilani 09.38.34
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28147 Bowl David Mathews 09.38.34
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 09.38.34 29731 Sam Saed
    18345 enemy test remove Group organization DELETED February 9, 12 AM 3 28919 Madhu mango 09.38.34

    For a group 18345, there are 10 users and this is the reason why I get a multiple user records.

    I can't avoid these last three columns, because I have to show these values in the application.

    In my opinion, the UNION is at the origin of the problem. Can I replace the UNION here? Please share your ideas on this.

    Thank you
    Rambeau

    Published by: ouali on February 9, 2012 22:35

    Hello

    because I have to show these values in the application.

    What is your problem then? If you simply issue a SELECT statement to application code or send the data back to REF CURSOR, it will be quite OK to have several lines. That's what the SELECT statements are for: to return sets of results with several lines.
    So, could not explain your problem more in detail please? If you get an error somewhere, provide the code causing the error and the error message (it is probably ORA-001422 exact extraction returns several lines somewhere in PL: / SQL, isn't it? then post here).

    In my opinion, the UNION is at the origin of the problem. Can I replace the UNION here? Please share your ideas on this.

    Us don't know not the answer to this question, because no one here knows your needs (what you need).

  • Update of several lines using the join condition

    Hi all

    CREATE OR REPLACE
    PROCEDURE update_t
    IS

    BEGIN
    SheikYerbouti IN (SELECT EMPLOYEE_ID, FIRST_NAME, LAST_NAME FROM hr.employees)
    LOOP
    UPDATE
    HR.employees1
    SET
    FOCA =)
    Select concat (FIRST_NAME, LAST_NAME) in the hr.employees where SheikYerbouti. EMPLOYEE_ID = 197);
    END LOOP;
    END update_t;
    /

    I'm trying to update column Foca Employees1 table. When I run this procedure, I get the error

    Error report:
    ORA-01427: einreihig subquery returns multiple rows
    ORA-06512: at "SYSTEM. UPDATE_T", line 13
    ORA-06512: at line 1
    01427 00000 - "einreihig subquery returns several lines.

    Please let me know a solution for this.

    Thank you
    Mathon

    Hello Mathieu,
    in your internal SQL result set is not limited to just one line.
    Try this

    UPDATE hr.employees1 SET
    FIRST_LAST= (select concat(FIRST_NAME,LAST_NAME) from hr.employees where emp_rec.EMPLOYEE_ID=hr.employees.employee_id);
    

    Your version had no restrictions on selected lines of hr.employees. You gave a where condition clause that is not related to the query.

    The best solution for your problem is to avoid completely any PL/SQL loop. You can try something like this:

    update
       (select
           e1.first_last,
           e.first_name,
           e.last_name
        from
           hr.employees1 e1,
           hr.employees e
        where
           e1.employee_id=e.employee_id) set
       first_last=first_name||last_name;
    

    But beware, the updates on the joints work only under certain restrictions. The key of the table to be updated must be the join key. (key preserved is the word to look for).

    Hope that helps,
    dhalek

  • Only a few lines in a report as links

    Hi friends,

    I'm doing some lines in a report (the report uses the union to take data from several tables) in the form of links. For example, I'm doing a line corresponding to 'emp' as a link. To do this, I try to use the code below
    select dname "c1" from dept where dname='dept5'
    
    union all
    
    select 
    '<a href=*"javascript:popUp2('
                      || '''f?p=&APP_ID.:4:&SESSION.::&DEBUG.::'
                      || 'P3_EXAMPLE:'
                      || ename
                      || ''', 700, 500);'
                      || '" >'
                      || ename*
                      || '</a>'
     "c1" from emp where Empno=7839
    
    --remove the '*' from the code
    But I have the result as


    dept5
    < * has href = "javascript:popUp2('f?p=19669:4:1768622885363834::NO::P3_EXAMPLE:KING',_700,_500)"; > KING < / has * >

    -remove the ' *'

    What should I use to facilitate this row a link.

    Thank you
    Nadège

    Make sure the column attribute display as for the report column is column of Standard report.

  • Selection of several lines

    OK, I have three tables, two tables are one and one is one to many. From one to the other tables have all the data in a row and one of many data available in several lines. The table several (named county_notes) has notes on specific counties. Other tables (named county_bio and county_stats) have different information about each County. The three tables are connected by a code.

    What I want to be able to list notes on each county and County information in the same report.

    For example:

    Record1
    County: Craven
    Phone: (252)123-4567
    Notes:
    Judy is nice
    John is average

    The tables would be like this:

    county_bio
    County_name ID
    1 craven


    county_stats
    ID county_phone
    1 (252) 123-4567

    county_notes
    Notes ID
    1 Judy is nice
    1 John is average


    Of course the tables above are just examples, but you get the idea of how the tables are arranged to the top. The problem is that I can join the table of county_notes to one of the two using tables, it's bad. Problem 2, Coldfusion separates each note in another record. So I find myself with record "craven" showing twice (once with the note about judy) and once with the note about john.

    Here's the SQL code that connects county_bio and county_notes:
    SELECT *.
    OF county_bio
    County_notes LEFT JOIN
    ON county_bio.ID = county_notes.county_ID

    First of all how all three tables connected? And on the other hand how ColdFusion to print each note about the County in a record?

    Thanks for any help! I have worked on this for a few days and am running out of ideas.

    wbnc1902 wrote:
    > First of all how all three tables connected?

    something like this:

    SELECT *.
    OF (county_bio INNER JOIN county_stats ON cb.ID = cs.ID cs cb)
    LEFT JOIN county_notes ON cb.ID = cn.county_ID cn

    NOTE: it is not the best practice use SELECT *. Instead, you should
    List the actual columns that you have selected.

    > And on the other, how do
    > ColdFusion to print each note about the County in a record?

    Search for the tag CFOUTPUT GROUP attribute in the docs

    HTH

    ---
    Azadi Saryev
    SABAI - Dee.com
    http://www.SABAI-Dee.com

  • Make a mistake trying to remove several lines

    Hi Experts,

    Working in jdev 11.1.1.3.0 with ADF BC and rich faces.

    I am trying to delete several records in the table, everything works fine if I use the filter or not using not horizontal scroll bar of the table. If I try to remove the last recordings on the table and are removing the UI and DB also, but I get the error message like

    ADFv:Count find the line: _ $< to-calc >$ cur key:oracle.jbo.key [2333] inside the mother: XxwfsAvcardXXXXXXXVO1Iterator with key: null

    I changed my method with the link below

    Re: Array of line selection JDev 11 g-Multiple-error Ctrl + A

    but until I get the same error:

    Method:

    {} public void deleteRec (ActionEvent actionEvent)
    Add the code in the event here...
    RowKeySet rowKeySet = (RowKeySet) this.embossTB.getSelectedRowKeys ();
    CollectionModel cm = (CollectionModel) this.embossTB.getValue ();
    Line specRow = null;
    RowList ArrayList = new ArrayList();
    int listLength = 0;
    ArrayList < number > printReqLST = new ArrayList < number > ();
    Vo1 ViewObject = null;
    Boolean flag = false;
    for (object facesTreeRowKey: rowKeySet) {}
    cm.setRowKey (facesTreeRowKey);
    JUCtrlHierNodeBinding rowData = (JUCtrlHierNodeBinding) cm.getRowData ();
    specRow = rowData.getRow ();
    rowList.add (specRow);
    listLength ++;
    }
    for (int index = 0; index < listLength; index ++) {}
    specRow = (Row) rowList.get (index);
    Number of printReqID = (Number) specRow.getAttribute ("PrintRequestId");
    String PrintState = specRow.getAttribute("PrintState").toString ();
    If (PrintState.equalsIgnoreCase ("PRINTED")) {}
    System.out.println ("remove cann't');
    FacesContext fctx = FacesContext.getCurrentInstance ();
    FacesMessage message =
    new FacesMessage ("cann't delete selected line:"+ printReqID ");
    message.setSeverity (FacesMessage.SEVERITY_ERROR);
    fctx.addMessage (null, message);
    } else {}
    System.out.println ("Delete");
    flag = true;
    specRow.remove ();
    }
    }

    {if (flag)}
    System.out.println ("before");
    commitRows();
    }
    }

    Can someone help me...

    Hello

    In your af:table try to replace lines = ' #{bindings. " XxwfsAvcardEmbossInterfaceVO1.rangeSize}"and
    fetchSize = "#{bindings." XxwfsAvcardEmbossInterfaceVO1.rangeSize}' with
    lines = ' #{bindings. " XxwfsAvcardEmbossInterfaceVO1.estimatedRowCount}"and
    fetchSize = "#{bindings." XxwfsAvcardEmbossInterfaceVO1.estimatedRowCount}.

    Regds,
    Briant

    Published by: Aline Sep 9, 2010 10:52

  • How to delete a line item / of a custom Data Type?

    Hi all

    I can't tried to delete a line of a custom data type.

    As you will see in the code below I add a line to an array of Type (this is done several times). I then loop through each row in the type of array and pass it the id in a separate function. Once it is I so need to remove this item from the array Type - that's where I think my syntax is wrong because I get an error "ORA-00903: invalid table name.

    Clear code
     DELETE FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE docVersionID = l_DocVersID;
    Complete code
    l_DeleteList.extend;
    l_DeleteList(l_DeleteList.last) := DOCVERSIONID(l_DocVersID);
    
    .......................
    
    select count(*) INTO v_count FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE));
      -- loop temp table and delete document versions
      WHILE v_count > 0
      LOOP
      BEGIN
        SELECT docVersionID INTO l_DocVersID FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE ROWNUM = 1;
        DeleteSingleDocumentVersion(l_DocVersID);
        DELETE FROM TABLE(CAST(l_DeleteList AS TEMP_DOCVERSIONID_TABLE)) WHERE docVersionID = l_DocVersID;
        select count(*) INTO v_count FROM l_DeleteList;
      END;
      END LOOP;
    Thanks in advance,

    Toby

    Trim element removes it from the end of the collection... but you are a loop of the collection from the first to the last clue.

    If you use delete then the item is deleted but index still exists... then array.last and County are not equal...

    You can use something as shown in this example (rather than use a time loop on many items)... after deleting an item to browse a table...

    SQL> Declare
      2     TYPE    TYP_TAB IS TABLE OF PLS_INTEGER ;
      3     my_tab  TYP_TAB := TYP_TAB( 1, 2, 3, 4, 5 );
      4     v       Pls_Integer ;
      5  Begin
      6     my_tab.DELETE(2) ;
      7     v := my_tab.first ;
      8     Loop
      9        Dbms_Output.Put_Line( 'my_tab(' || Ltrim(To_char(v)) || ') = ' || my_tab(v) ) ;
     10        v := my_tab.NEXT(v) ; -- get the next valid subscript
     11        Exit When v IS NULL ;
     12     End loop ;
     13  End ;
     14  /
    my_tab(1) = 1
    my_tab(3) = 3
    my_tab(4) = 4
    my_tab(5) = 5
    

    Published by: ravikumar.sv on August 10, 2009 15:19

  • How to upgrade the value of line in a report by using the line selector (check box)

    Hello

    I have a requirement where I need to make PLSQL update process on a specific line in my report.
    Based on the line selector (marked) the plsql process update on the values of the selected line.

    I have to update status of the employee selected as 3.
    But regardless of the choice of line selector, juice processing SRM application in a sequence that is., this is row selected, application takes the first line and updates the status.

    My update process from looks like this:

    BEGIN

    BECAUSE me in 1... apex_application.g_f01. COUNTY - checkbox
    LOOP
    If apex_application.g_f01 (i) only IS NOT NULL then - box marked
    insert into values TEMP_T (apex_application.g_f03 (i), V ('APP_USER')); -f03:Deptno
    update status set Table_x = 3 where deptno in (select deptno from TEMP_T where rtrim (lower (apex_user)) = rtrim (lower (V ('APP_USER')));
    delete from TEMP_T where rtrim (lower (apex_user)) = rtrim (lower (V ('APP_USER')));
    end if;
    END LOOP;
    END;

    Once the user selects the line selector, application needs to update the status of this particular emp 3 in Table_X.
    Currently, if I select a line, using the line selection box, my update process changes the status of the first record line. If I select three rows, then my first three rows updated.
    So I have to update the particular line or selected using the selector (checkbox) row lines

    If you could help me solve this question would be really appreciated.

    Thank you
    Vijay

    This example shows how to use checkboxes in tabular form:

    http://HTMLDB.Oracle.com/pls/OTN/f?p=31517:95

    Denes Kubicek
    ------------------------------------------------------------------------------
    http://deneskubicek.blogspot.com/
    http://www.Opal-consulting.de/training
    http://Apex.Oracle.com/pls/OTN/f?p=31517:1
    ------------------------------------------------------------------------------

  • How can I delete several images in the Finder at the same time

    How can I delete several images in the Finder all at once rather than one by one

    Click on an image and the successive images to press the SHIFT, or command key by clicking on the image to add it to the selection. Then Ctrl-click (tap two fingers) on any icon and choose to put in the trash. If the icons are in an easily selectable column or online, you can click on the window that contain, and then drag around them for a multiple selection.

  • How can I delete several clips at once from the timeline

    How can I delete several clips at once from the timeline?

    Thanks, Dan

    Shift-click or command-click to select if they are contiguous. Then press the delete key.

    Or select them and use the keyboard shortcut command + X.

    Or select them in the Index of the Timeline and use the key DELETE or command + X.

    Russ

  • Match pattern IMAQ 4 to superimpose several lines 2

    Hello community OR,.

    I have a problem connecting to the match pattern to superimpose several lines 2.

    I want to track an object from a video webcam.

    In this help http://zone.ni.com/reference/en-XX/help/370281U-01/imaqvision/imaq_match_pattern_4/ it is said that the Matches (Pixels) (Bounding Box) must be connected to the superposition of several lines to the end of line Points. But I can't take the bounding box only. I tried the unbundling of the table 1 d of the clusters, but I can't do it.

    Any help is appreciated. I can post a picture of my code if requested.

    Thank you

    Marwan Sabry

    I'm sorry, it's an array of clusters.
    -Therefore, index 0 for the first game.
    -unbundling with name for encompassing and then pass it to overlay vi.

Maybe you are looking for

  • iCloud on iphone5s

    I changed my email address in my iCloud account recently but when I go into the settings on my phone, iCloud watch always my old email address - why has she not been updated of my iCloud account? In addition, he asked sometimes connect so I use the p

  • How to send a pulse to a relay

    Hello I'm using LabVIEW 8.6 to control a solenoid via a C series relay module. I want to activate the relay for a period of time and then turn it off. This function is controlled by a feedback loop. I have attached a simple vi showing my code. The pr

  • Windows Security Center indicates microsoft security essential is off but it shows that it is on

    My windows Security Center came saying virus etc is at risk and microsoft security essentials is off. It's on and said that he protects? Please notify.

  • From process over ethernet and wireless Bluetooth

    My w500 is always online. However when I staredt time the use of bluetooth automaticlly XP installed some driver for bluetooth. "" When a driver named about "asess bluetooth LAN ' installed, all my wireless and ethernet conection were cut. The ethern

  • Telepresence endpoints

    What is the meaning of endpoints Cisco telepresence TC, OF DX, SX, TE, endpoints IX. ??