Home » Developer & Programmer » Forms » deleteing a record from database using delete_record
deleteing a record from database using delete_record [message #144985] Sun, 30 October 2005 19:28 Go to next message
quandom
Messages: 1
Registered: October 2005
Location: Sydney, Australia
Junior Member
(Oracle9i Form Builder)

From my understanding, in a generic delete button thats in a specific datablock, when you create a when button pressed trigger to the code:

DELETE_RECORD;
COMMIT;

It will delete the current datablock record from the database...

However in my form, when doing this, it comes up with a message regarding inserting the record...

I assume that since its using the command COMMIT;, it thinks to submit data into the database, where in fact, I'm trying to delete a record.

Is there a way around this? (I guess my question is, is my understanding of deleting a record using Oracle Forms incorrect?)

I have also tried
DELETE FROM CUSTOMER WHERE CUSTOMER_ID = x;
--where x is some variable
COMMIT;

Kind regards,
Drew
Re: deleteing a record from database using delete_record [message #144995 is a reply to message #144985] Sun, 30 October 2005 22:44 Go to previous message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
Your delete is okay, its the automatic record population code that you have in your form that is the problem.

David
Previous Topic: forms
Next Topic: logon
Goto Forum:
  


Current Time: Fri Sep 20 03:38:38 CDT 2024