Insert and Update directly into table from pre update trigger of block based on same table [message #456059] |
Fri, 14 May 2010 06:10 |
kenibhoy
Messages: 3 Registered: January 2009
|
Junior Member |
|
|
Hi, I have a base table (Table A) block with multiple records displayed. I need to track audits to this underlying table in the following way:
If user updates a field in the block I want the pre-changed record's audit fields to be set and I need to create a copy of the record with the changed values. Basically any changes will result in the record being logically deleted, and a copy record created with the newly changed values.
Tried to implement in the block's pre-update trigger which will call a package to directly update Table A then Insert into Table A, then requery the block.
Is there a clean and efficient way to do this?
Thanks
|
|
|
|
|
|
|