Process needed to delete row

Hello,
I need to create a process that will enable users to delete a row when they press 'Remove Accused', this is not a button but a column link within the table that also redirects back to the current page. I'm not really sure what to do.
If you need more information just ask :)
Thank-you,
Sandy

Hi Sandy,
OK - Bear in mind that my page is number 212 and I'm working on a table called EMP3, which is a copy of the sample EMP table (I've just added a button to repopulate the EMP3 table if all the records are deleted!)
This is what I did:
1 - I created a report using the following SQL statement:
SELECT EMPNO, ENAME, JOB, HIREDATE
FROM EMP32 - I then created a "Hidden and Protected" page item called P212_EMPNO (you create a Hidden item and then select the "Hidden and Protected" option to do this). This item will either be NULL or will hold the EMPNO value of the item to be deleted
3 - I then went back to the Report Attributes page for my report and clicked the "Add Link Column" task (on the right of the page). When this is created, I went back to the Report Attributes and clicked the "Custom" headings option and changed the heading for the new column to   (this is just a space and means that no heading is shown)
4 - I then clicked on the edit icon for this new column and scrolled down to the Link section. In there, I made the following settings:
Link Text: Delete (you can put whatever you like)
Target: Page in this Application
Page: 212 (which is the current page)
Item 1 (Name): P212_EMPNO
Item 1 (Value): #EMPNO# (which is replaced by the value of the EMPNO column for each row in the report)
Then clicked Apply Changes to save this
5 - Then I created a new Branch on the page. When creating this, the only settings I made were:
Page: 212
Reset pagination: Checked
This is just an unconditional branch - you should have one of these on every page unless you have specifically handled branching via buttons
6 - Now the important bit. I created a new process on the page - by clicking the Create icon in the Processes section under Page Rendering. The settings I made were:
Process category: PL/SQL
click Next
Name: P212_DELETE_EMPNO (or whatever you like)
Sequence: 10
Point: On Load - Before Header
click Next
Enter PL/SQL Page Process:
BEGIN
DELETE FROM EMP3 WHERE EMPNO = :P212_EMPNO;
:P212_EMPNO := NULL;
END;click Next
Success Message: (anything you like)
Failure Message: (anything you like)
click Next
Condition Type: Value of Item in Expression 1 Is NOT NULL
Expression 1: P212_EMPNO
click Create Process
And, that should be it. You now have a hidden page item that either be NULL or will receive an EMPNO value via your new column link. When the link kicks in, the page is reloaded and the new process checks to see if P212_EMPNO has a value. If it has, it uses that value to delete the record and then resets P212_EMPNO back to NULL.
Andy

Similar Messages

  • Need to delete data from main table and all child tables ...

    hi all,
    i need to delete rows pertaining to perticular table and all the child
    tables basing on certain code.i need to write a procedure to which i will
    pass the table name and code..
    like del_info(tab_name,code)
    example:
    suppose if i call as del_info(clients,760)
    the procedure should delete all info reg. code 760
    and the table clients and also all the child records of this table
    perting to code 760.
    simply .. i need to delete from the table passed and also
    all the child tables down the heirarchy regarding certain code ...
    help ???
    Ravi Kumar M

    Hi,
    Depends how you defined referential integrity.
    You can use ON DELETE CASCADE, please read the next doc http://download-west.oracle.com/docs/cd/B10501_01/server.920/a96540/clauses3a.htm#1002692
    Hope this help you,
    Nicolas.

  • How to delete row by row comparing to first collumn?

    Hello!
    I have a problem - I need to delete row by row , but the problem is, that I know that first COLUMN of any table is a PK.
    To retrieve COLUMN NAME I use:
    SELECT column_name, table_name FROM USER_TAB_COLUMNS WHERE column_id = 1 and table_name = c1.tmp_table_name;
    But this somehow doesn't work.
    Below you can see my script (not worked for now):
    declare
    xxx varchar2(100);
    begin
    for c1 in (select table_name, tmp_table_name from tmp_tables) loop
    EXECUTE IMMEDIATE
    ' SELECT column_name into '|| xxx ||' FROM USER_TAB_COLUMNS WHERE column_id = 1 and table_name = ' ||''''||c1.tmp_table_name||'''';
    execute immediate
    'begin
    for c2 in (select * from '|| c1.tmp_table_name || ') loop begin
    insert into '|| c1.table_name || ' values c2; delete from '|| c1.tmp_table_name || ' where ' || xxx ||' = c2.'||xxx ||'; exception when others then null; end; end loop; end;';
    end loop;
    end;
    P.S. Inserts work perfect. I have a problem with delete rows that are in c1.table_name, from c1.tmp_table_name (this two tables have the same structure, PK, always), because I have different column names in another tables tables that are PK. (for example: K, ID, NS and so on) please help me to write correct script.
    For example for first fetched row it will be like:
    begin
    for c1 in (select table_name, tmp_table_name from tmp_tables) loop
    execute immediate
    'begin for c2 in (select * from '|| c1.tmp_table_name || ') loop begin
    insert into '|| c1.table_name || ' values c2; delete from '|| c1.tmp_table_name ||' where K = c2.K; exception when others then null; end; end loop; end;';
    end loop;
    end;
    That script works perfect. But I have many others tables with different PK - not K.

    Solution with error-logging table
    -- create the error-logging table
    CREATE TABLE tbl_MergeErrors (
        Stamp       TIMESTAMP(3),
        TableName   VARCHAR2(30),
        KeyColumn   VARCHAR2(30),
        KeyValue    VARCHAR2(4000),
        ErrorCode   NUMBER(5),
        ErrorMsg    VARCHAR2(4000),
      CONSTRAINT pk_MergeErrors
          PRIMARY KEY (TableName, Stamp)
          USING INDEX
    -- procedure to insert errors
    CREATE OR REPLACE
    PROCEDURE LogMergeError (pTableName  IN VARCHAR2,
                             pKeyColumn  IN VARCHAR2,
                             pKeyValue   IN VARCHAR2)
    IS PRAGMA AUTONOMOUS_TRANSACTION;
        -- you couldn't insert SQLCODE or SQLERRM directly into a table (ORA-00984)
        nSQLCODE   NUMBER(5)      := SQLCODE;
        vcSQLERRM  VARCHAR2(4000) := SQLERRM;
    BEGIN
      INSERT INTO tbl_MergeErrors
             (Stamp, TableName, KeyColumn, KeyValue, ErrorCode, ErrorMsg)
          VALUES (SYSTIMESTAMP, RTrim( SubStr( pTableName, 1, 30)),
                  RTrim( SubStr( pKeyColumn, 1, 30)), SubStr( pKeyValue, 1, 4000),
                  nSQLCODE, vcSQLERRM);
      COMMIT WORK;
    -- if an error occured here, then just roll back the autonomous transaction
    EXCEPTION
      WHEN OTHERS THEN   ROLLBACK WORK;
    END LogMergeError;
    -- create the tables and insert test-data
    CREATE TABLE TMP_TABLES (
        TABLE_NAME       VARCHAR2(200),
        TMP_TABLE_NAME   VARCHAR2(200),
      CONSTRAINT TMP_TABLES_X PRIMARY KEY (TABLE_NAME)
    CREATE TABLE TMP_KL002 (
        K   VARCHAR2(40),
        N   VARCHAR2(200)
    CREATE TABLE TMP_TABLE1 (
        NS   VARCHAR2(40),
        N    VARCHAR2(200)
    CREATE TABLE KL002 (
        K VARCHAR2(40),
        N VARCHAR2(200),
      CONSTRAINT PK_KL002 PRIMARY KEY (K)
    CREATE TABLE TABLE1 (
        NS   VARCHAR2(40),
        N    VARCHAR2(200),
      CONSTRAINT PK_TABLE1 PRIMARY KEY (NS)
    INSERT INTO TMP_TABLES (TABLE_NAME, TMP_TABLE_NAME) VALUES ('kl002','tmp_kl002');
    INSERT INTO TMP_TABLES (TABLE_NAME, TMP_TABLE_NAME) VALUES ('table1','tmp_table1');
    INSERT INTO tmp_KL002 (K, N) VALUES ('00', 'none');
    INSERT INTO tmp_KL002 (K, N) VALUES ('07', 'exists');
    INSERT INTO tmp_KL002 (K, N) VALUES ('08', 'not assigned');
    INSERT INTO tmp_table1 (NS, N) VALUES ('2000', 'basic');
    INSERT INTO tmp_table1 (NS, N) VALUES ('3000', 'advanced');
    INSERT INTO tmp_table1 (NS, N) VALUES ('4000', 'custom');
    COMMIT WORK;
    -- to test, if it works correct when primary key values exists before
    INSERT INTO KL002 VALUES ('07', 'exists before');
    COMMIT WORK;
    -- check the data before execution
    SELECT * FROM TMP_KL002 ORDER BY K;
    SELECT * FROM KL002 ORDER BY K;
    SELECT * FROM TMP_TABLE1 ORDER BY NS;
    SELECT * FROM TABLE1 ORDER BY NS;
    -- empty the error-logging table
    TRUNCATE TABLE tbl_MergeErrors DROP STORAGE;
    -- a solution
    DECLARE
        PLSQL_BLOCK  CONSTANT VARCHAR2(256) := '
    BEGIN
      FOR rec IN (SELECT * FROM <0>) LOOP
        BEGIN
          INSERT INTO <1> VALUES rec;
          DELETE FROM <0> t WHERE (t.<2> = rec.<2>);
        EXCEPTION
          WHEN OTHERS THEN
              LogMergeError( ''<1>'', ''<2>'', rec.<2>);
        END;
      END LOOP;
    END;';
    BEGIN
      FOR tabcol IN (SELECT t.Tmp_Table_Name, t.Table_Name, c.Column_Name
                     FROM Tmp_Tables t,
                          User_Tab_Columns c
                     WHERE     (c.Table_Name = Upper( t.Tmp_Table_Name))
                           AND (c.Column_ID = 1)
                ) LOOP
        EXECUTE IMMEDIATE Replace( Replace( Replace( PLSQL_BLOCK,
                                   '<0>', tabcol.Tmp_Table_Name),
                                   '<1>', tabcol.Table_Name),
                                   '<2>', tabcol.Column_Name);
      END LOOP;
    END;
    -- check the data after execution ...
    SELECT * FROM TMP_KL002 ORDER BY K;
    SELECT * FROM KL002 ORDER BY K;
    SELECT * FROM TMP_TABLE1 ORDER BY NS;
    SELECT * FROM TABLE1 ORDER BY NS;
    -- ... and also the error-logging table
    SELECT * FROM tbl_MergeErrors ORDER BY Stamp, TableName;
    -- of couse you must issue an COMMIT (the ROLLBACK is only for testing
    ROLLBACK WORK;
    -- drop the test-tables
    DROP TABLE TABLE1 PURGE;
    DROP TABLE KL002 PURGE;
    DROP TABLE TMP_TABLE1 PURGE;
    DROP TABLE TMP_KL002 PURGE;
    DROP TABLE TMP_TABLES PURGE;
    -- you shouldn't drop the error-logging table, but I use it to free up my db
    DROP TABLE tbl_MergeErrors PURGE;Greetings, Niels

  • Deleting rows from very large table

    Hello,
    I need to delete rows from a large table, but not all of them, so I can't use truncate. The delete condition is based on one column, something like this:
    delete from very_large_table where col1=100;
    There's an index (valid, B-tree) on col1, but it still goes very slow. Is there any instruction which can help delete rows faster?
    Txh in adv.
    A.

    Your manager doesn't agree to your running an EXPLAIN PLAN? What is his objection? Sounds like the prototypical 'pointy-hair boss'.
    Take a look at these:
    -- do_explain.sql
    spool explain.txt
    -- do EXPLAIN PLAN on target queries with current index definitions
    truncate table plan_table
    set echo on
    explain plan for
    <insert query here>
    set echo off
    @get_explain.sql
    -- get_explain.sql
    set linesize 120
    set pagesize 70
    column operation     format a25
    column query_plan     format a35
    column options          format a15
    column object_name     format a20
    column order           format a12
    column opt           format a6
    select     lpad(' ',level) || operation "OPERATION",
         options "OPTIONS",
         decode(to_char(id),'0','COST = ' || NVL(to_char(position),'n/a'),object_name) "OBJECT NAME",
         cardinality "rows",     
         substr(optimizer,1,6) "OPT"
    from     plan_table
    start     with id = 0
    connect by prior id = parent_id
    There are probably newer, better ways, but this should work with all living versions of Oracle and is something I've had in my back pocket for several years now. It's not actually executing the query or dml in question, just running an explain plan on it.

  • Need to delete blank rows from various worksheets in same workbook-reg

    Hi Team,
    I am searching for a macro to delete the blank rows from my worksheets.
    Sub testIt()
    Dim r As Long, endRow As Long, pasteRowIndex As Long, Worksheet As Object
    Application.ScreenUpdating = False
    endRow = 1000
    pasteRowIndex = 1
    For r = 1 To endRow
        If Cells(r, Columns("A").Column).Value = "12345" Then
                Rows(r).Select
                Selection.Copy
                Sheets("12345").Select
                Rows(pasteRowIndex).Select
                ActiveSheet.Paste
                CutCopyMode = False
                pasteRowIndex = pasteRowIndex + 1
                Sheets("NORMAL").Select
    End If
        If Cells(r, Columns("A").Column).Value = "45678" Then
                Rows(r).Select
                Selection.Copy
                Sheets("45678").Select
                Rows(pasteRowIndex).Select
                ActiveSheet.Paste
                pasteRowIndex = pasteRowIndex + 1
                Sheets("NORMAL").Select
        End If
        If Cells(r, Columns("A").Column).Value = "36925" Then
                Rows(r).Select
                Selection.Copy
                Sheets("36925").Select
                Rows(pasteRowIndex).Select
                ActiveSheet.Paste
                pasteRowIndex = pasteRowIndex + 1
                Sheets("NORMAL").Select
        End If
         If Cells(r, Columns("A").Column).Value = "789456" Then
                Rows(r).Select
                Selection.Copy
                Sheets("789456").Select
                Rows(pasteRowIndex).Select
                ActiveSheet.Paste
                pasteRowIndex = pasteRowIndex + 1
                Sheets("NORMAL").Select
    next r
    end sub()
    the above code searches for the value "12345" "45678" "36925" "789456" if found in worksheet (normal) then it picks the value and paste it in new corresponding worksheet with sheet number (12345). while pasting like
    this it has some blank rows so it need to delete the rows help me out of this problem. thanks in advance

    Hi vigneshvicky,
    This code snippet works fine to delete the blank rows, please try it:
    ActiveSheet.UsedRange.Select
    'Deletes the entire row within the selection if the ENTIRE row contains no data.
    Dim i As Long
    'Turn off calculation and screenupdating to speed up the macro.
    With Application
    .Calculation = xlCalculationManual
    .ScreenUpdating = False
    'Work backwards because we are deleting rows.
    For i = Selection.Rows.Count To 1 Step -1
    If WorksheetFunction.CountA(Selection.Rows(i)) = 0 Then
    Selection.Rows(i).EntireRow.Delete
    End If
    Next i
    .Calculation = xlCalculationAutomatic
    .ScreenUpdating = True
    End With
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Delete Request in Process Chain - still need to delete indexes?

    I have a cube here that is a full load every day.  In the process chain I delete the 1 request (because there's only one request in the cube at any time) and then I reload using a full load.
    My question is that with a normal load into a cube I delete indexes and then load and then recreate indexes.  Now with my cube since I am deleting the contents of the cube do I need to add the delete indexes process in the chain? 
    Do the indexes get deleted when the data is deleted?

    Hello,
    Yes, when you delete the content of the InfoCube the Index associated with also gets deleted. So in the process chain Delete Content -> Load Data -> Create Index will be enough.
    Thanks
    Chandran

  • Rman-08137 can't delete archivelog because the capture process need it

    When I use the rman utility to delete the old archivelog on the server ,It shows :Rman-08137 can't delete archivelog because the capture process need it .how to resolve the problem?

    It is likely that the "extract" process still requires those archive logs, as it is monitoring transactions that have not yet been "captured" and written out to a GoldenGate trail.
    Consider the case of doing the following: ggsci> add extract foo, tranlog, begin now
    After pressing "return" on that "add extract" command, any new transactions will be monitored by GoldenGate. Even if you never start extract foo, the GoldenGate + rman integration will keep those logs around. Note that this GG+rman integration is a relatively new feature, as of GG 11.1.1.1 => if "add extract foo" prints out "extract is registered", then you have this functionality.
    Another common "problem" is deleting "extract foo", but forgetting to "unregister" it. For example, to properly "delete" a registered "extract", one has to run "dblogin" first:
    ggsci> dblogin userid <userid> password <password>
    ggsci> delete extract foo
    However, if you just do the following, the extract is deleted, but not unregistered. Only a warning is printed.
    ggsci> delete extract foo
    <warning: to unregister, run the command "unregister...">
    So then one just has to follow the instructions in the warning:
    ggsci> dblogin ...
    ggsci> unregister extract foo logretention
    But what if you didn't know the name of the old extracts, or were not even aware if there were any existing registered extracts? You can run the following to find out if any exist:
    sqlplus> select count(*) from dba_capture;
    The actual extract name is not exactly available, but it can be inferred:
    sqlplus> select capture_name, capture_user from dba_capture;
    <blockquote>
    CAPTURE_NAME CAPTURE_USER
    ================ ==================
    OGG$_EORADF4026B1 GGS
    </blockquote>
    In the above case, my actual "capture" process was called "eora". All OGG processes will be prefixed by OGG in the "capture_name" field.
    Btw, you can disable this "logretention" feature by adding in a tranlog option in the param file,
    TRANLOGOPTIONS LOGRETENTION DISABLED
    Or just manually "unregister" the extract. (Not doing a "dblogin" before "add extract" should also work in theory... but it doesn't. The extract is still registered after startup. Not sure if that's a bug or a feature.)
    Cheers,
    -Michael

  • Need to delete process chain

    Hi Experts,
    I developed some new testing process chains in my development system, now i need to delete Process chains?
    i cannot find out the way? can any one help on this?
    Thanks in advance
    David

    Thanks Mti my problem is solved
    Edited by: david Rathod on Nov 23, 2010 3:29 PM

  • PO needs to deleted  error in process

    Shop with Limit (SWL) SC has been created previously with 2 or 3 line
    before implementation of the OSS note1058510, the PO has gone
    into 'Error in Process' there are almost 5-6 PO with this status.
    We have implemented the OSS note 1058510 and now can create multiple
    line with limit SC and PO.
    Tried to kick-start the previously created PO again by deleting the
    line items but Po again has gone ‘error in process’.
    Needs to delete the PO which has gone ' Error in Process before
    implementation the note.

    Hi Teja,
    Thanks for your reply, yaa i do agree that we can delete the Po item in browser or in GUI but in my case the Po has gone error in process when I delete the Po item and approved the PO it is again going in Error in process and not updating the Backend deletion flag.
    Unfortunatly  none of the FM provided by you is not sacifies my purpose the item is not deleted.
    can you please elaborate whether it will cahnge the status of the Po or put the deletion flag on the items in the PO. also which one should i use because i have tested all of them and is not working
    Regards
    Rama
    Will surely award points for useful answer.
    Message was edited by:
            rama kumar

  • Delete row option doesn't work and then becomes greyed out. Need help troubleshooting.

    Hello!
    I'm hoping that someone can please help me troubleshoot an issue I'm having with a table in my form. It has a menu associated with each row that allows you to add, delete, reset, etc. rows. The name of the table on the form is the Purchase Items table. It's the first table on the form.
    Here are the steps to recreate the issue:
    1. Create 3 rows in the table
    2. Click the menu ("X") button associated with the first row.
    3. Select "Delete this row". Nothing happens.
    4. Click the menu ("X") button associated with the first row.
    5. Select "Delete this row" again. Nothing happens.
    6. Click the menu ("X") button associated with the first row. You'll notice that the "Delete this row" option is greyed out.
    My best guess that the rows are being deleted in the background which would explain that if I have 3 rows, and "delete" 2, that my delete option is then greyed out because I believe there is logic in there such that if there is only 1 row then grey out the option to delete rows. I was planning to attach the file as I have seen others do but don't see the option. I'm happy to provide the file via email if that's easier. Thank you in advance!
    Saskia

    I've posted the solution here:
    http://www.fieldeffecttechnologies.com/AdobeForums/PCard.pdf
    The instance manager methods were being given the wrong index of the row to work with. They need to be passed the index for the row that the button you are pressing is in (of course). Instead they were given some v8b index, which I honestly cannot decipher as to what that number possibly means. (Math.round((v3-v4)*v6........)???
    Anyways, I fixed it up and also changed some of the logic in the sub menu to determine what's greyed out.
    I like that feature! Might even show it to a client!
    Kyle

  • I have a large numbers spreadsheet and I need to delete a lot of blank rows. Can I do this in one lump sum, or do they have to be deleted singularly ?

    I have a large numbers spreadsheet that I inherited and I need to delete a lot of rows. Can this be accomplished collectively, or does each row have to be deleted one by one ?

    You can delete multiple rows at once.
    Hold down the command key and select the rows (which do not have to be contiguous) by clicking the row numbers on the left, then do this:
    SG

  • How to count the number of deleted rows processed

    Sybase ASE version: 15.7-SP52
    Hi all,
    I have a delete statement that will potentially delete millions of rows
    DELETE from TAB_A where COL_A='Y'
    The delete is long, at some point I'd like to know how many rows were deleted.
    If I do SELECT COUNT(*) from TAB_A where COL_A='Y', the query should be locked because of the exclusive-lock held by the DELETE in progress.
    If this is the case, how can I actually count the number of rows deleted so far?
    Thanks all
    Simon

    Simon
    For  deleting significant number of rows best practice is to delete rows in small batches of known size (e.g. 10 K) inside a while loop. 
    This keeps transaction log from filling up as well.
    Also between two iterations of delete you can give some wait to make sure that you do not monopolize the server. Sleep could be for a fixed number of seconds (e.g. 5) or for randomized number say from 1 to whatever makes sense.
    Typically "set rowcount " is used to set up the batch size and "waitfor delay" to sleep between iterations.
    Global variable @@rowcount gives yo actual rows deleted. For the last batch this may be lower than the batch size you set up.
    HTH
    Avinash

  • PL/SQL procedure for deleting rows

    We have to delete rows from a table by initiating parallel processes depending on no of connections, and also variable commit frequency. The procedure has to start by itself in case of failure of 1 or more parallel processes, by identifying the position where it stopped. Please some one help me what would be th elogic needed to write the [rocedure.
    Thanks in Advance
    Edited by: 864979 on Jun 9, 2011 10:02 PM

    Be careful of how this is designed and coded. It is very easy to do it horribly wrong, causing contention and problems.
    Have a look at DBMS_PARALLE_EXECUTE.
    If the package is not available on your Oracle version, then look at {message:id=1534900} for a manual approach.

  • How to delete rows in the target table using interface

    hi guys,
    I have an Interface with source as src and target as tgt both has company_code column.In the Interface i need like if a record with company_code already exists we need to delete it and insert the new one from the src and if it is not availble we need to insert it.
    plz tell me how to achieve this?
    Regards,
    sai.

    gatha wrote:
    For this do we need to apply CDC?
    I am not clear on how to delete rows under target, Can you please share the steps to be followed.If you are able to track the deletes in your source data then you dont need CDC. If however you cant - then it might be an option.
    I'll give you an example from what im working on currently.
    We have an ODS, some 400+ tables. Some are needed 'Real-Time' so we are using CDC. Some are OK to be batch loaded overnight.
    CDC captures the Deletes no problem so the standard knowledge modules with a little tweaking for performance are doing the job fine, it handles deletes.
    The overnight batch process however cannot track a delete as its phyiscally gone by the time we run the scenarios, so we load all the insert/updates using a last modified date before we pull all the PK's from the source and delete them using a NOT EXISTS looking back at the collection (staging) table. We had to write our own KM for that.
    All im saying to the OP is that whilst you have Insert / Update flags to set on the target datastore to influence the API code, there is nothing stopping you extending this logic with the UD flags if you wish and writing your own routines with what to do with the deletes - It all depends on how efficient you can identify rows that have been deleted.

  • Automatically delete row data on interactive report

    Hi All,
    I would like to know it's possible to automatically delete row data on interactive report when the check box is checked.
    I'm appreciating if you all can share your opinion or solution.
    Thanks a lot in advance!
    Best regards,
    Liz

    Hi,
    Why you like have checkbox ?
    Is it more clear for user have image/button like my example ?
    This is just example you need modify according your needs. Example do not have confirmation dialog.
    Page HTML header
    <script>
    function delIRRow(p_pk_val){
    var a = new htmldb_Get(null,null,'APPLICATION_PROCESS=DELETE_ROW');
    a.addParam('x01',p_pk_val);
    var r=a.get();
    if(!r=='1'){alert('Delete operation failed!');}else{gReport.search('SEARCH');}
    </script>On Demand process DELETE_ROW
    BEGIN
    delete from your_table where pk_col = APEX_APPLICATION.G_x01;
    htp.p('1');
    EXCEPTION WHEN OTHERS THEN
    htp.p('0');
    END;Change your_table and pk_col according your table name and pk column name.
    Call javascript from image/button (IR column link) or checkbox, and send primary key value as parametter
    Br,Jari
    Edited by: jarola on Jul 5, 2010 11:58 AM

Maybe you are looking for

  • How Do I Add A Title To My Outline?

    Sick of MS WORD so I broke down and bought PAGES this morning. So far I like it, but I was most excited about using the Outline Mode, however I'm trying to add a title to my outline, but I can only make it one of the actual bullet points. Anyone know

  • Question On How to Install Teradata ODBC on CF9 64-bit?

    Need to install Teradata drivers on 2 different servers:  A Windows 7 64-bit, and a Windows Server 2008 R2, both running IIS 7.5 and CF 9.0.1 64-bit.  Am fairly sure this needs to be set up as an ODBC Socket in CF Admin.  I've downloaded both the 32

  • How do I get rid of the three SEO apps that are now on my computer?

    I'm not into internet marketing-building websites etc., at this time. I would like to remove the SEO apps that are on my desktop etc. I believe there are three of them, and I don't need them.

  • Displaying text in GUI

    hey can someone please explain to me how I can display text in a GUI panel? I have a method which, when run, displays some values. How can I run this method in the panel? Thanks

  • Count the number of mondays in a specific month

    Hey guys, do you know how I can show the number of mondays in the current month? Thank you very much. Marc