Home » Developer & Programmer » Forms » no delete child record
no delete child record [message #174491] Mon, 29 May 2006 07:10 Go to next message
mfa786
Messages: 210
Registered: February 2006
Location: karachi
Senior Member

hi master
sir
i have master delete form
i have problem in delete when child record
sir in key-commit event i have this code

begin
IF :SYSTEM.FORM_STATUS = 'CHANGED' THEN
if :drbal='' or :crbal='' then
clear_form(no_commit);
go_block('chartofacc');
next_record ;
go_item('drbal');
else
/*(no_commit) and exit_form(no_validate) it seems */
commit_form;
go_block('chartofacc');
next_record ;
go_item('drbal');
end if;
elsif :SYSTEM.FORM_STATUS = 'DELETE'
THEN
DELETE ACCBAL WHERE ACCID=:chartofacc.ACCID;
go_block('chartofacc');
end if;
end;

but my system not delete the child record when i press delete button
and when i delete master record system give me error found mactching record in detail
please give me idea how i delete child record




thank

aamir
Re: no delete child record [message #174494 is a reply to message #174491] Mon, 29 May 2006 07:13 Go to previous messageGo to next message
jowahl
Messages: 82
Registered: May 2006
Member
i think it IS deleted.
but you have to requery in form to see changes ....
Re: no delete child record [message #174539 is a reply to message #174491] Mon, 29 May 2006 08:23 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Have you solved your problem?

David
Previous Topic: Image control
Next Topic: how to use the same lov for different item
Goto Forum:
  


Current Time: Fri Sep 20 06:53:34 CDT 2024