Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Problem with manual update

Status
Not open for further replies.

bilalch

Programmer
Sep 26, 2003
84
IR

Hi dear frends

i've written the sql update command on a button press trigger as

begin
update TNA
set shipdate = :shipdate , description = :description
where TNAID = :TNAID;

commit ;
end;

but when i do this it shows PK Uniqueness error. i.e. the form tries to resave it as a new record instead of updating the record.


plz help.

 
Are you here again :)? Forms needs NO CODE for editing table once you've created a block based on it. Writing it is really bad habit, because Forms makes assumptions about existing pending changes according to your actions with Forms items, not to DML statements called from triggers.

Regards, Dima
 
sorry dear frend DIMA

i couldn't stick to ur advice due to the problem that i ws wondering if not to write this DML, then how to update some data i'm looking at in my forms.

Hearty thanks for ur precious advices.
bye
 
bilalch,
Please read the FAQ:

What are the basic concepts of Oracle Forms? faq259-3484

[sup]Beware of false knowledge; it is more dangerous than ignorance.[/sup][sup] ~George Bernard Shaw[/sup]
Consultant/Custom Forms & PL/SQL - Oracle 8.1.7 - Windows 2000
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top