Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » delete record
delete record [message #2591] Mon, 26 July 2010 08:32 Go to next message
vidhu is currently offline  vidhu
Messages: 14
Registered: February 2010
Location: SURINAME
Junior Member

Hello sir

Could you give me good example of pre_delete record function
Re: delete record [message #2592 is a reply to message #2591] Mon, 26 July 2010 13:55 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
How useful would an example be? You can put inside this method any code you want executed before you delete a record.

What are you trying to do?


Re: delete record [message #2593 is a reply to message #2592] Tue, 27 July 2010 07:51 Go to previous messageGo to next message
vidhu is currently offline  vidhu
Messages: 14
Registered: February 2010
Location: SURINAME
Junior Member

Hello sir ,
If I have to delete a record of mother table,first i want to delete a record of mother table.so I thought pre_delete_record is good for that one.Am i right or wrong?
Re: delete record [message #2594 is a reply to message #2593] Tue, 27 July 2010 08:34 Go to previous message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
If you are trying to delete a record from table 'A', but at the same time you wish to delete any associated records from table 'B', then you can achieve this automatically by creating a relationship between table 'A' (the parent) and table 'B' (the child) and setting the relationship type to 'CASCADE'. This is documented in dict_related_column(multi4).

Previous Topic: list2
Next Topic: Running a Workflow
Goto Forum:
  


Current Time: Sat Nov 23 08:40:10 EST 2024

Total time taken to generate the page: 0.01208 seconds