To kno Delettion details
Hi Experts
I have deleted some records from the standard tables,
can we know the details of deletion such as when and what deletion carried out. Is there any table available.
Is it possible to know the details.Suggest me.
Regards
Rajaram
Hi,
just after deleting u can get the no of records deleted using sy-dbcnt system variable.....
ex.
delete from <dbtab> where cond..
if sy-subrc is initial.
write : sy-dbcnt,'records deleted'.
endif.
Cheers,
jose.
Similar Messages
-
I need to delete header record automaticaly when deleting detail
Hi all
I have to master-detail tables
The relation between the header and details is one-to-one.
on my form i want to do the following:
When user delete the detail record the header record must be automatically deleted.
on the trigger key_delrecord on the form level i write this code
BEGIN
IF :SYSTEM.CURSOR_BLOCK = 'DETAILS' THEN
Delete_record;
FORMS_DDL('COMMIT');
Go_block('Data');
Delete_record;
FORMS_DDL('COMMIT');
ELSE
Delete_record;
END IF;
END;
but this does not work
an error message appear on the runtime " can not delete header while dependent detail exists"
Please how can I archive this
Thanks in advance
Edited by: [email protected] on Oct 4, 2009 11:01 AMHi!
May set the Delete Record Behavior Relation Property to Cascading.
And change your trigger to:
BEGIN
IF :SYSTEM.CURSOR_BLOCK = 'DETAILS' THEN
Go_block('Data');
END IF;
Delete_record;
END; But, may do not use the forms_dll build-in for a commit.
Use the commit_form build-in so forms recognize that you commit the form.
Regards -
Deleting details from Portal Favourites
Hi Experts,
We're using EP to publish reports from BI. We have saved reports loaded in EP which is shown in Portal favourites in left side. We wanted to know how to delete those details. Also, guide me I want to list few details in favourites, how to do it.
If you need more details, kindly let me know. Hope you can suggest us with the above details.
thanks in advance.
Best Regards,Hi Narayanan,
For the question-1:
1. You should download the sap.portal.navigation.masthead.par.bak from the Portal Server.
2. Import PAR to your NWDS .
3. Now you can find the JSP pages where you can remove the log-off links, can disable (commenting) the banner images, etc.
4. After changing these stuff, upload the Par (without .bak) to portal.
5. Now refresh/relogin to portal , you should see the changes.
NOTE: Make sure you have the original masthead.PAR as a copy. If you want the original back then upload the original par back to Portal.
Also refere - Portal Branding - Go beyond portal themes
For question-2:
1) you need to create specific ROLES and assign those worksets/roles.
2) then create a GROUP assign those roles you want to
3) then assign the user to the groups
This is the standard way to do that.
Thanks
Raags -
Problem in deleting detail records....
Hi!
i Have found CustomerInfo Object (with cascade="all" attribute in configuration file),and now trying to update it i do the following
Set a = customerInfo.getCustomerAccounts();
/*customerAccount1 with no primery key (i want to save this record for first time)
a.add(customerAccount1);
/*customerAccount2 with primery key i want this record to be updated in database
a.add(customerAccount2);
/*customerAccount3 with pk i want this record to be deleted
a.remove(customerAccount3);
but when i try to session.saveUpdate(customerInfo) and then session.close(),i get following exception.
net.sf.hibernate.NonUniqueObjectException: a different object with the same identifier value was already associated with the session: 474, of class: com.cstel.personalloan.hibernate.CustomerAccount
Can anybody plz tell me where i am doing something wrong.
also there is a case where i want to first delete all those old records in a set and then add new records to it , i am using a.clear() for that is that ok r i should have to do something else for it.
thanks in advance.sorry but it is basically a hibernate related question nothing to do with jsp , but since i didnt find any hibernaet forum here i had to post it on this forum,sorry for that
-
The detail part of table doesn't refresh after deleting a row
Hello!
I'm developing a Master-Detail table with some a functionality. Particularly, I want to invoke a DELETE function in the Detail part of the table.
For this purpose, I placed a Command button to the tableSelectOne component of the Detail part of the table, which stores current row key and calls another page. On this (<another>) page I created a ReadOnly form with data related to the row of Detail table, which key is stored. In addition, I added there two Command buttons. First of them is a CancelButton, which does nothing except returning to master-detail page. The second is a DeleteButton, which executes a RemoveEntity method and returns to master-detail page, too.
When I'm tried to delete in this way a row from detail part of table, I discovered, that this row is really deleted from the database, but it doesn't affect on the content of the Detail part of the table. Any kinds of refreshing couldn't aid me, only restart of the application.
Could anybody help me to solve this problem?
Thank in advance.Hi,
I'm facing the same problem but Frank's solution doesn't fix it.
you need to define an invoke action in the binding
for your m/d page and set it into the page binding's
execute section. Then set the condition for invoking
the action to !postback. This will re-execute the
iteratorThis efectively re-executes the iterator, so the master table data is refreshed. You can see the TopLink log showing the query to the db (I'm using TopLink instead of BC). The problem is that the detail rows are queried only once and only the inserts and updates are displayed, not the deletes.
I think the problem may be related to PPR or some cache issue.
See the BC tutorial
http://www.oracle.com/technology/obe/ADFBC_tutorial_10
13/ADFBC_tutorial.pdf
See page 86 "Adding the ServiceHistories Data". This
defines a invoke action for this kinf of task. More
example code is contained in the SRDemo sampleThe tutorial doesn't contain a scenario with master-detail deleting detail records (neither the BC tutorial, nor the TopLink one) so it can't help me :(
The only solution I can think of is using a different model method (a method in the SessionFacade for TopLink) for the detail table (one that takes the master PK as parameter and retrieves the corresponding detail records) and have a selectionListener in the selection component of the master re-execute the method (passing the PK from the master table current row).
Is there a solution that doesn't require the use of a separate method for the detail?
Thanks,
Miguel -
Delete on master detail does not work
I am trying to delete the master record from master table using the master-detail form. I am getting this error
An unexpected error occurred: ORA-02292: integrity constraint ('table_name') violated - child record found
ORA-02063: preceding line from 'Schema name' (WWV-16016).
I checked the 'Cascade delete detail rows on master detail' check box - Logically I would expect it to delete the detail and master record. Does this work? Is there anything that needs to be set in addition to this?
Thanks,
KarunaRepost
I'm sorry .it do work fine -
Master form detail table delete and save all
I use jdeveloper 10.1.2 with jheadstart 10.1.2 I have a problem about delete and save in master detail.I create 1 master form ,1 detail table and 1 detail form in jheadstart.I want to delete details when I pressed delete button in master and I want to save all changes when I pressed save button.But delete and save are only work for master.So my detail data cant delete or save.What can I do for this problem?Thank alot.......
To delete the details when you delete the master, it is easiest to define the foreign key in the database with CASCADE option instead ogf RESTRICTED.
I cannot reproduce your issue with Save not working. Can you reproduce this using the HR schema?
Steven Davelaar,
JHeadstart team. -
Is it possible to reterive the deleted Outbound Delivery details
Hi
I would like to know , Is it possible to reterive the deleted Outbound Delivery details like who deleted with date and time.
Can It possible to create Proforma invoice without Post Goods Issue (PGI) of Outbound Delivery.
Can it possible to delete Outbound delivery after creation of its proforma and excise Invoice.Thanks sridhar,
My prob is solved regarding deleted details.
Can we avoid , user can't delete the Outbound Delivery after creation of Proforma Invoice and Excise invoice. because OD is related to PRof and Excise inv.
Actually In case of Sale Order's OD user cant delete OD's. but in case of STO it possible.
Thanks and Regards,
Tapovardhan -
Deleting book details from iPad
I wish to delete details of past books, after deleting a book you can see which ones you have downloaded before.
The best you can do is hide them:
http://support.apple.com/kb/ht4919 -
Master detail form - Cascade Delete gives error
I am using 3.0.9.8.2 and have made a master detail form which works fine except for cascade delete. Insert and update works well, but I have to delete the child rows first to be able to delete the parent.
"Cascade Delete Detail Rows on Master Delete" is checked.
Error situation 1 (where the master just has one child row (number of detail rows to be displayed = 2)):
When trying master action=delete I get:
Error: No conversion performed for type INTEGER, value . (WWC-49102)
This happens whatever is chosen from the detail action drop down list during the attempted delete.
Error situation 2 (where the master has two child rows (number of detail rows to be displayed = 2)):
When trying master action=delete I get:
Error: An unexpected error occurred: ORA-02292: integrity constraint (MILLS_PORTAL.TEX_ACCOUNTS_FK) violated - child record found (WWV-16016)
This also happens whatever is chosen from the detail action drop down list.Sorry to say, but this is a bug which will get fixed in the forth coming releases.
Till then, there are 2 ways to avoid this problem:-
1> The change the foreign key in the detail table to have an ON DELETE CASCADE clause.
2> (Though not desirable, but still as a workaround)- Drop the foreign key constraint from the detail table. -
Master/Details tables with CASCADE delete giving "table mutating" error
Hi,
I have two tables in a master/details configuration (table 1 is "master", table 2 is "details").
The details has a FK contraint relation to the master with a CASCADE delete (so when the master is deleted, all associated details are deleted).
The master table has a column "last_updated_datetime" which is updated by a master table update trigger whenever most (excluding the last_updated_datetime column) columns are updated.
The details table has an update trigger which also updates the master table's last_updated_datetime column (whenever a detail row is changed).
The details table also has a delete trigger which also updated the master table's last_updated_datetime column (whenever a detail row is deleted).
The problem I have is: When the master record is deleted, which cascade deletes the details record(s), the delete trigger on the details table throws a "table is mutating" error.
I understand that the "mutating" error is "correct" because the master record is being deleted.
But is there some way I can get around this problem (for example, having the details table delete trigger not update the master table last_updated_datetime) when it's this cascade delete?
Thanks for your help!create table master (
id number primary key,
changed date not null
create table detail (
id number primary key,
master_id references master (id) on delete cascade
create or replace package pkg is
master_deleted boolean := false;
end;
create or replace trigger bds_master
before delete on master
begin
pkg.master_deleted := true;
end;
create or replace trigger ads_master
after delete on master
begin
pkg.master_deleted := false;
end;
create or replace trigger adr_detail
after delete on detail
for each row
begin
if not pkg.master_deleted then
update master
set changed = sysdate
where id = :old.master_id;
end if;
end;
insert into master values (1, sysdate - 10);
insert into detail values (11, 1);
insert into detail values (12, 1);
insert into master values (2, sysdate - 10);
insert into detail values (21, 2);
insert into detail values (22, 2);
insert into master values (3, sysdate - 10);
insert into detail values (31, 3);
insert into detail values (32, 3);
commit;
select * from master order by id;
ID CHANGED
1 01.09.08
2 01.09.08
3 01.09.08
select * from detail order by id;
ID MASTER_ID
11 1
12 1
21 2
22 2
31 3
32 3
delete detail where id = 21;
select * from master order by id;
ID CHANGED
1 01.09.08
2 11.09.08
3 01.09.08
select * from detail order by id;
ID MASTER_ID
11 1
12 1
22 2
31 3
32 3
delete master where id in (1, 2);
select * from master order by id;
ID CHANGED
3 01.09.08
select * from detail order by id;
ID MASTER_ID
31 3
32 3 Regards,
Zlatko
Edited by: Zlatko Sirotic on Sep 11, 2008 11:15 PM
This is disaster - ten attempts to format code! -
Inserting records in master detail form
I am moving an existing Webdb Application to portal. In the application there is a master detail form along the following lines
Dept Id: 10
Dept Name: IMS
Employee ID Employee Name etc
1586 Julie Wilks
Currently users can insert/update/delete detail lines. When inserting, the dept_id foreign key is automatically inserted into the dept_id column in the detail table. My understanding is that for some reason this does not happen in portal. Instead, the user is expected to input any foreign keys manually. As this could lead to all sorts of problems I'd rather not have to do this.
Has anyone found a means to get around this problem?
If solutions have already been posted, please point me in the right direction as a search on the forum hasn't come up with anything.
Many thanks,
Julie WilksHi,
Am I the only one having this problem?
Thanks,
Diana -
I want to delete all transparent pixels, how can I? CS6
I would like to delete all transparent pixels surrounding my irregularly (non-square) image. The TRIM function only trims to a square surrounding my image and not to the edge of the image itself. Is there a work around for this? I have looked around and haven't found one.
Thanks,
JBImage have rectangular area they have a width and height boundaries as do layer. Not all of the rectangular area need to have content or be fully opaque, However the image boundary is a rectangle. Some file formats are like a Photoshop Background layer do not support empty area or even transparency so those file formats only contain image that are rectangles and have no transparency. Some file formats support transparency and empty areas so those images can be any shape and contain transparency still the image boundary is rectangular. Then there is the GIF file format an oddball format. It only supports 256 Colors. Pixels are mapped to one of the 256 colors selected for the image. If you want Transparency in a gif the number of colors is reduced by 1 to 255 the 256 color now indicate no content its not real transparency it just a no color pixel in other words off or no content.
So if you have areas that are 100% transparent there is nothing to delete the area is empty. If you have pixels that contain some transparency and you delete those pixels you delete details are you sure you want to delete all pixels that contain transparency? You will loose things like drop shadows -
Hello Marvel team and Others,
Is it possible with thee html db wizard to create a page contaning a master with more than one details ?, I think no , please if No, can I do it manually ? Any ideas are welcome.
This is my need :
The same page mmust contain :
udpatable items for the master
updatabee report for each detail
insert details for an existeing master
delete details from an existing master
insert a new master with his details
deletee a master, of course with his details
Jina.The Add Rows button submits the page and re-renders it with additional N rows in that region. Any changes made in that region will be saved.
Perhaps what you need is some client-side DHTML/Javascript to dynamically add some rows in your tabular form.
See
Re: Copy Values From Tabular Form for a discussion about that and an example at http://htmldb.oracle.com/pls/otn/f?p=24317:227
But all this is straying far outside the out of the box functionality and you have to write everything yourself. You should re-evaluate some of your business requirements before going down this path.
In other words, having a master-detail-detail, all of them editable, one global SAVE button for all of them, client-side Add Rows functionality, and all on the same page...is a highly unusual UI.
Good luck. -
Cascade delete in many to many association
Hi All,
I have a usecase, there is an association with many to many cardinality between 3 EO's. If i delete any record in master, the corresponding childs all should delete.
So appreciate if any alternatives on above usecase. Thanks in advanceHi,
cascade delete is a function of the database. When you enable cascade delete for an entity operation then this only produces the proper SQL code for deleting a data object. If you have a many-to-many relation then this means you have multiple master and child records, which I think makes your "If i delete any record in master, the corresponding childs all should delete" impossible.
for what its worth, please read
Creating a Business Domain Layer Using Entity Objects - 11g Release 2 (11.1.2.3.0)
to learn how to parse and delete detail records from an entity object
http://docs.oracle.com/cd/E35521_01/web.111230/e16182/bcentities.htm#CEGJAFCF
The last document is about posting orders (e.g. create a master record before you create detail records). However, with a few changes you can reverse this to perform a delete operation (just add this code to the entity impl classes of the entities so they delete their child objects
Frank
Maybe you are looking for
-
What adapter do I need to connect my 2009 Macbook Pro to my 2007 iMac?
What adapter do I need to connect my 2009 Macbook Pro to my 2007 iMac? I get really confused with all of the different cables out there an I want to make sure I get the correct one. Macbook Pro Model is: Late 2009, 2.26 GHz Intel Core 2 Duo, 8 GB 106
-
How can I detect printing from an external program? In simple, I want my java application to detect that printing has been submitted from a non-java application (say Microsoft Word). I should be able to know the following: the printer used and the nu
-
When text is low on the page, it does not print on the page!
Office Jet J6480, Windows 7 32 bit. Sometimes pages with a content line near the bottom of the page, does not print or the characters are only partially printed on the output page.
-
My directory contains many files (.java) but I don't know if they are classes or interfaces. How can I determine the number of classes and interfaces in a directory by reading the files? Thanks?
-
Converting photo taken by Ipad into JPEG format
I took a picture with my Ipad and I need to put it in JPEG format and send it as an attachment to an email. How do I do that?