Home » Developer & Programmer » Forms » problem to delete record
problem to delete record [message #513382] Mon, 27 June 2011 03:20 Go to next message
narang79
Messages: 137
Registered: June 2010
Senior Member
i m using oracle 10g forms

in one form

there are multiple records shown in this form

i m using one delete button

coding is

declare
v_yes_no varchar2(1);

begin
v_yes_no:=display_alert2('alert_2','Caution','Do you want to delete current record');
if v_yes_no='Y' then
GO_BLOCK('IMPROVEMENT_SUGGESTION');
DELETE_RECORD;
end if;
end;


but when i press this button then one message shown on secreen

you can not delete this record

when i debug the form

message shown through on error trigger

i can not understand why this message ocuured

and record not deleted

no any constraint use in this form

but if i delete record from backend then records
delete successfully
Re: problem to delete record [message #513482 is a reply to message #513382] Mon, 27 June 2011 15:34 Go to previous messageGo to next message
Littlefoot
Messages: 21818
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
You are (most probably) not deleting the "current" record, but the first record that belongs to IMPROVEMENT_SUGGESTION block. What block does this "delete" button belong to?

When the trigger fails, what error is it? Go to Help - Display Error and copy/paste its contents back here.
Re: problem to delete record [message #513564 is a reply to message #513382] Tue, 28 June 2011 04:46 Go to previous message
narang79
Messages: 137
Registered: June 2010
Senior Member
thanx sir

problem resolved
Previous Topic: MS WORD PROBLEM
Next Topic: Oracle 9i Backup
Goto Forum:
  


Current Time: Mon Sep 16 21:30:38 CDT 2024