Home » Developer & Programmer » Forms » button to delete
button to delete [message #201601] Mon, 06 November 2006 00:47 Go to next message
Mohannad
Messages: 47
Registered: January 2006
Location: palestine
Member

hay :
i am using the developer 2000/ forms and i have a one filed and i waint to put a button when i press it delete not from the form only and from the database .
can u help me
thanks
Re: button to delete [message #201604 is a reply to message #201601] Mon, 06 November 2006 00:59 Go to previous messageGo to next message
djmartin
Messages: 10181
Registered: March 2005
Location: Surges Bay TAS Australia
Senior Member
Account Moderator
If you use the default 'smartbar' toolbar, there is a 'delete' button on it which will mark a record for deletion and remove it from the screen.

Read the documentation on 'delete_record'.

David
Re: button to delete [message #201606 is a reply to message #201601] Mon, 06 November 2006 01:13 Go to previous messageGo to next message
Mohannad
Messages: 47
Registered: January 2006
Location: palestine
Member

MAN I USE IT I WAINT TO DELETE IT FROM DATABASE IF U CAN SEND TO ME THE CODE I WILL BE PLEASER FOR U
ALL THE BEST
Re: button to delete [message #201619 is a reply to message #201606] Mon, 06 November 2006 02:01 Go to previous messageGo to next message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
There's no reason to raise your voice.

"Delete" button will remove the whole record from the screen. If you want it to be removed from the database, you'll have to COMMIT changes you've made.

Do it either by pressing the corresponding "Save" button on the toolbar, or - if you created that button - after 'delete_record;' enter another 'commit;' statement.
Re: button to delete [message #201697 is a reply to message #201619] Mon, 06 November 2006 07:14 Go to previous messageGo to next message
ab_trivedi
Messages: 460
Registered: August 2006
Location: Pune, India
Senior Member
hi mohannad

did u solve your problem. there is smart toolbar in Developer 2000 so no need to worry.

bye
ashu
Re: button to delete [message #226507 is a reply to message #201619] Sat, 24 March 2007 06:30 Go to previous messageGo to next message
srinivasan83
Messages: 7
Registered: March 2007
Location: coimbatore
Junior Member
hi littlefoot,
is any possible to modify smart bar trigger..i mean i want to change the save button in smart bar ...if so how can i do it...thanks in advance
Re: button to delete [message #226508 is a reply to message #226507] Sat, 24 March 2007 07:21 Go to previous message
Littlefoot
Messages: 21823
Registered: June 2005
Location: Croatia, Europe
Senior Member
Account Moderator
"Save" button can be modified by writing your own code into a KEY-COMMIT trigger.
Previous Topic: display execl in forms data block item
Next Topic: CHANGING DATE FORMAT IN FORMS
Goto Forum:
  


Current Time: Sat Feb 08 20:53:33 CST 2025