Tigger to automatically save deleted row(s)

How can I create trigger that saves the row(s) to be deleted in some other table???

Hi,
As always, RTFM...
Yoann.

Similar Messages

  • 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

  • Add/Delete Rows problem

    I'm having a problem with the add row and delete row for my table.  I have a table set up with the add row button in the header, and the delete row button in the first cell of the row beneath the header.  I have it set so that the initial count of the row is 2.  My problem is if the user adds several rows with data, and save the form.  When that user goes back into the same form later, it keeps the several rows that the user entered, which is fine, but then it automatically adds 3 more blank rows to the table, which I don't want.  I don't understand why it is doing this.  Does anyone have a clue to why this is happening?
    Thanks
    Connie

    Hi Connie,
    Just make sure that you have checked the below thing.\
    File > Form Properties > Run tIme > Scripting > Automatically is checked.
    Thanks,
    Bibhu.

  • Cannot DELETE rows from LOV on running...is it a bug ??

    One of the features I appreciated in the new version of JHeadstart is that we can now insert, modify and delete rows on LOV (even in the database).
    We have just to check on Lookup properties :
    Multi-row insert allowed
    Multi-row update allowed
    Multi-row delete allowed
    I cheked all of them and on runnig I could insert and update records in LOV.
    When I tried to delete records from LOV the system display information message "nothing to save" and in fact no records were deleted.
    Normally since I checked the delete property it should be possible to delete rows from LOV
    thanks for any Help

    Monta,
    I could reproduce this, it is a bug. Added to the fix list for the next release.
    Thanks for reporting,
    Steven Davelaar,
    JHeadstart Team.

  • Database, Dataset, Table Adaptors Error "Unable to load, Update requires a valid DeleteCommand when passed DataRow collection with deleted row"

    Microsoft Visual Basic 2010 Express.
    I am new to Visual Basic programing and i am trying to understand the relationships between Datasets, database, table Adaptors. I have to following code that is is giving me the following error" Unable to load, Update requires a valid DeleteCommand
    when passed DataRow collection with deleted rows". 
    I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    It seems that i can delete the data on the DataGridView Table and it only displays the correct data. but my database is not updating, even though the data grid displays differently.I can determine this because, when i save the offset database, i have all
    the previous uploads and all the rows that i wanted to delete are still there.
    My final goal is to be able to import offset data from a CSV file, save this data on the pc, send a copy of this data to a NuermicUpDown so the customer can modify certain numbers. From here they download all the date to a controller.  IF the customer
    needs to modify the imported data, they can go to a tab with a data grid view and modify the table. They will also have to option to save the modified data into a csv file.  
    Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    CODE:
    Private Function LoadOffSetData()
            Dim LoadOffsetDialog As New OpenFileDialog 'create a new open file dialog and setup its parameters
            LoadOffsetDialog.DefaultExt = "csv"
            LoadOffsetDialog.Filter = "csv|*.csv"
            LoadOffsetDialog.Title = "Load Offset Data"
            LoadOffsetDialog.FileName = "RollCoaterOffset.csv"
            If LoadOffsetDialog.ShowDialog() = Windows.Forms.DialogResult.OK Then  'show the dialog and if the result is ok then
                Try
                    Dim myStream As New System.IO.StreamReader(LoadOffsetDialog.OpenFile) 'try to open the file with a stream reader
                    If (myStream IsNot Nothing) Then 'if the file is valid
                        For Each oldRow As MaterionOffsetDataSet.OffsetTableRow In MaterionOffsetDataSet.OffsetTable.Rows
                            oldRow.Delete()                       
    'delete all of the existing rows
                        Next
                        'OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        Dim rowvalue As String
                        Dim cellvalue(25) As String
                        'Reading CSV file content
                        While myStream.Peek() <> -1
                            Dim NRow As MaterionOffsetDataSet.OffsetTableRow
                            rowvalue = myStream.ReadLine()
                            cellvalue = rowvalue.Split(","c) 'check what is ur separator
                            NRow = MaterionOffsetDataSet.OffsetTable.Rows.Add(cellvalue)
                            Me.OffsetTableTableAdapter.Update(NRow)
                        End While
                        Me.OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)
                        MainOffset.Value = OffsetTableTableAdapter.MainOffsetValue          'saves all the table offsets
    to the offset numericUpDown registers in the main window
                        StationOffset01.Value = OffsetTableTableAdapter.Station01Value
                        StationOffset02.Value = OffsetTableTableAdapter.Station02Value
                       myStream.Close() 'close the stream
                        Return True
                    Else 'if we were not able to open the file then
                        MsgBox("Unable to load, check file name and location") 'let the operator know that the file wasn't able to open
                        Return False
                    End If
                Catch ex As Exception
                    MsgBox("Unable to load, " + ex.Message)
                    Return False
                End Try
            Else
                Return False
            End If
        End Function

    Hello SaulMTZ,
    >>I can track the error and its located in "OffsetTableTableAdapter.Update(MaterionOffsetDataSet.OffsetTable)" code. What am i missing?
    This error usually shows that you do not initialize the
    DeleteCommand object, you could check this
    article to see if you get a workaround.
    >> Im not sure if i am making this overcomplicated or if there is a easier way to program this.
    If you are working CSV file, you could use OleDB to read it which would treat the CSV file as a Table:
    http://www.codeproject.com/Articles/27802/Using-OleDb-to-Import-Text-Files-tab-CSV-custom
    which seems to be easier (in my opinion).
    Regards.
    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 Row in WAD layout for input ready query

    Hi All
    I am using WAD for planning applications.....when i execute the Web template, it is displaying the query in edit mode which is ok... i am able to edit and insert the records in layout but i didn't find any option for deleting row...i couldn't see any command button for delete functionality in WAD...
    please help me out......how i can get delete functionality in my user input query opened in WAD
    Thanks
    Tripple k

    Hi
    Thanks for your help...but that is not going to help...by the way i am surprised why SAP has removed these basic functionality from IP while they are there in BPS..like add row delete row...in WAD if we dont have option for new line...we have to specify the no. of new lines in prior....also if user has filled the new lines then next line will not come untill he save..trhis is ridiculas....i am not able to find any wayout for these silly functionality
    Thansk
    Tripple k

  • Delete row in JTable

    Hello I am new To JAVA SWING
    I have 2 questions related to JTable
    1) How do i remove selected row in JTable ...for instance, I click on the row to delete (It is selected) , later I press the delete button, and then row is removed .... any hints ?
    2) If I would like to save the rows in a JTable into a database , .... How can iterate through the rows in the JTable..each row .... the rows are saved in a List object...and a List Object is what I pass as a parameter in a class method in order to be saved into Database.
    Thanks,
    deibys

    1) use the removeRow(...) method of the DefaultTableModel
    20 use table.getModel().getValueAt(...) to get the data from the model and create your list Object.

  • Adding/Deleting rows in a Table

    I am trying to get a couple of buttons to work in a table to add/delete rows. I have followed the directions in the LiveCycle designer help and it isn't working.
    In a test setup the only difference I can see from the help file is my Table is called Table1 and the subform containing the 2 buttons is called Subform1
    I have therefore amended the script for the click event for the AddRow to
    "Table1.Row1.instanceManager.addInstance(1);"
    Any ideas where I am going wrong?
    TIA
    Antony

    Hi,
    My usecase is that user enters a url with parameters for example in the text box--> http://host:port/employee/all?department=abc&location=india. Now i want to parse this url , get the parameters out and put it in the table so that it is convenient for users to modify these parameters. User has a option to add and delete the parameter in the table. So once all this is done and user clicks on say save i don't need to send this table to server. i just have to make sure that the values added/deleted from the table are in sync with the url. So in the server i get all the parameters from the url and continue.
    Since this is only needed on the client side i wanted to know if we can create a table with no values and then say on tabbing out of the url text box call a javascript that takes value from it and adds new rows to the table.
    I am using JDEVADF_MAIN_GENERIC_140109.0434.S

  • Can't catch the matrix row for Deleting Rows

    Hi,
    I've already read related topics but couldn't solve the problem.
    I catch the Delete Row menu event 1293, but then I can't save the deleted row in an array since it's no longer listed as a selected row.
    All the matrix rows return
    oMatrix.IsRowSelected(i) = False after catching that 1293 event.  
    Trying BeforeAction True or false didn't solve that problem.
    What am I missing ?

    it sounds like a bug.
    here is workaround: in oMatrix-itempress event try to store selected rowIndex in your variable - so, when you catch 1293-menuEvent you'll know which row you should save - it'll be value of your variable.

  • Cannot commit delete row from VO

    I have a VO that I have no problem create new row, update existing row and commit. But I can't commit deleted row to database. no exception or error message etc... and All other VOs are working fine,
    anybody has any idea why? is that an option or something on VO? or is it an BC4J bug?
    Thanks,
    -Ming
    Edited by: user715460 on Oct 16, 2008 3:40 PM

    You are in the wrong forum. Try your question JDeveloper and ADF .
    And please consider this too (copied from this thread Concerned in delayed response
    a) Use a good subject line that briefly describes the issue. This will attract those familiar with that area to come and help.
    b) Tell us what database version you are using. Not just saying e.g. "10g" but more specifically "10.2.0.3"
    c) Describe the issue clearly stating what you have tried, and what you are trying to achieve.
    d) Don't use txt spk because this is a professional forum, not a chat room and not everyone can follow it.
    e) Don't USE CAPITAL LETTERS IN YOUR DESCRIPTION as this is considered shouting and agressive.
    f) Provide sample data for us to use if necessary either with the CREATE TABLE and INSERT statements to create it or providing a WITH clause that we can use. This saves us from having to type in and format the sample data for ourselves and is more likely to attract us to help.
    g) Show the code that you have already tried (if you haven't tried any code yet then why not? have a go yourself and only ask for help when you get stuck).
    h) Show us any error messages you are getting, in full, and with information of the line numbers where the error is occurring
    i) Wherever you provide data or code remember to use the tag before and after or the [code] tag before and the [/code] tag after, so that it keeps it's layout and is clear to read.
    j) Perhaps one of the most important things of all... never suggest that you need a solution "urgently" or that your issue is "urgent". This implies that your issue is somehow more important than the issues posted by other people. Everybody would like an answer to their issue promptly, but it just depends when people are online who can answer the question and nobody is being paid to answer it, so it is arrogant and rude to demand urgent attention to your own. If something is that urgent then you should raise it through oracle metalink as a priority issue or pay for someone with the necessary skills to come and do the work for you.
    Timo                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Over-riding automatic save/copy of "sent" e-mail ??

    Is there any way to over-ride (for a single message) the automatic save/copy of "sent" e-mail ?? ie there are occasions when I DON'T want to keep a copy.....

    As far as I'm aware, you can choose to either save a copy or not.
    This is set up in your Account Settings> copies & folders for the mail account.
    I'm not aware of any method that lets you preselect to not save a particular email. Other than changing the Account Settings prior to creating the email and then resetting them again after sending.
    The only option would be to save all as auto and delete what you do not want.

  • DISPLAY AND DELETE ROW ISSUE

    Moderator message: please do not post subject in all capitals
    Dear friends
    i have created report for transfering data from one database table to another database table i.e. detail table.
    after executing Master data list will appear and after clicking on master data record it shows detail data with edit fields where i can enter my own data and after clicking save button i can pass that data to database table and at the same time data goes in display mode. I want that enterd data not to delete bye delete row button please tell me how can i avoid deletion of data.
    Thanks
    regards
    Rohan
    Edited by: Matt on Jan 19, 2009 1:51 PM

    Hi ,
    You csn hide the Delete button so that it will not delete the line...
    Please have a look at this example ...BCALV_EDIT_05. You need to append exclude table and pass in the set_table_for_first_display method like below...
      ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.
      append ls_exclude to t_exclude.
    call method g_grid->set_table_for_first_display
           exporting is_layout             = gs_layout
                     it_toolbar_excluding  = lt_exclude
           changing  it_fieldcatalog       = gt_fieldcat
                     it_outtab             = gt_outtab[].
    hope this helps you,.
    Raj

  • Transport deleted row in custom table

    I have a custom table with maintenance view.  I have no problem adding/changing rows in table and transporting. But, how do I capture the deleted rows in a transport?? There's nothing there to select and 'add to transport request'!

    Hi,
    In the table maintenance generator in SE11, in the recording routine check the "Standard recording routine" and then save it.
    Then create a customizing CR in SE09.
    Then go to SM30 then enter the table and then press maintain..
    If you delete the entry I believe it will ask for a CR..
    Hope this helps..
    Thanks,
    Naren

  • [Help]Grid (Add row - Delete row)

    Hi experts. Just want to ask how can I add row and delete row in Grid?
    And how can I get the data from the specific row so I can Save the data in my table.
    Please help.

    Hi  hikaru1207     ,
          this code for delete row from Matrix :
                 Matrix oMatrix_cat = (Matrix)form.Items.Item("mtx_cat").Specific;
    Delete Row -
               for (int i = 2; i <= oMatrix_cat .rowcount; i++)
                        oEditText = (EditText)oMatrix.Columns.Item(colname).Cells.Item(i).Specific;
                            oMatrix.DeleteRow(i);
                 if (form.Mode == BoFormMode.fm_ADD_MODE)
                        if (oMatrix.RowCount == 0)
                            DBDataSource oDBDataSource = form.DataSources.DBDataSources.Item(table name);
                            oDBDataSource.Clear();
                    oMatrix_cat .FlushToDataSource();
    Add row----
                       if (oMatrix_cat.RowCount == 0)
                                oMatrix_cat.AddRow(1, 1);
                                oDBDataSource_cat.InsertRecord(oDBDataSource_cat.Size);
                            else
                                oDBDataSource_cat.InsertRecord(oDBDataSource_cat.Size - 1);
                            oDBDataSource_cat.SetValue("LineId", oDBDataSource_cat.Size - 1, "");
                            oDBDataSource_cat.SetValue("U_SKU", oDBDataSource_cat.Size - 1, "");
                            oDBDataSource_cat.SetValue("U_CatId", oDBDataSource_cat.Size - 1, "");
                            oMatrix_cat.LoadFromDataSource();
                            oDBDataSource_cat = null;
                   please reply ......
    yhanks
    surajit

  • Replicate deleted rows through Archiver

    Hi all
    I'm trying to replicate deleted rows from a custom UCM table, but when a record is deleted from the source table, the deleted record doesn't get replicated to the target table through Archiver.
    The source archive is setup to export and transfer automatically. Also, the "replicate deleted rows" option is ticked on the source archive and the recommended Create and Modify time stamp columns are selected.
    I'm deleting the records through the Configuration Manager applet after creating a view on the table.
    I can see that new rows (the deleted record) are added into the "DeletedRows" table but they don't get deleted on the target instance. Am I missing anything else?
    Regards,
    Alex
    Edited by: user8859325 on Jan 18, 2013 2:28 AM

    Hi
    I have done other tests and can see that there is first of all a problem with the strSQL = strSQL & " AND PeriodKey = '" & dtePerKey & "'"
    in the where clause.
    If I execute this SQL request in SQL Developer, I have a non-zero number in the TMP table :
    INSERT INTO TMP (SELECT COUNT(*) FROM tDataSeg3 WHERE PartitionKey='749' AND CatKey = '12' AND PeriodKey = to_date('30/04/10'))If I execute the same request through FDM, I have 0 in the TMP table.
    Thanks for your help
    Fanny

Maybe you are looking for

  • Regarding Java Proxy development in PI 7.1

    Hi all,          Can anybody provide us the step by step creation of java proxy development in PI 7.1 using SAP nteweaver developer studio7.1 Any useful links present for this? Edited by: sasitharan on Mar 3, 2009 9:18 AM

  • Importing & Editing My Own DVDs

    Hello I have a DVD Recorder in my living room and want to be able to edit stuff I record on my Mac using iMovie. Ideally I want to be able to remove adverts etc quickly without needing to watch the programmes as I record hovering over the pause / unp

  • How to order by dates?

    How do you ORDER BY DATES descendingly? Let's say i have a column named log_Date and the format is 12/03/04 1:04 PM Is there an easier way in ordering that kind of date format? If so, what is the code for that? If there's none, then I'm thinking of s

  • Will ios 7 be on ipod 4g

    tell me ios 7 will be on ipod touch 4g

  • Regarding ListBox

    i am using a tabstrip designed using screen painter. i write the code for listbox in a module. but it is not executing the listbox code.where i should put the module.