update before delete

Discussions related to customizing hooks. Hooks are documented at http://bigprof.com/appgini/help/advanced-topics/hooks/
Post Reply
tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

update before delete

Post by tuxor » 2014-10-14 04:51

Hi,

Hi, Did you can update table2 before to delete a record from table1?

For example i have this table1:
id=id of item,
name=name of item,
cant=quantity of items

And the table2:
id=id of totals
id_item=id of item, equals from table1
total=total-cant (from table1)

How did you do that?

thank you.

tuxor
Veteran Member
Posts: 48
Joined: 2014-06-15 00:09

Re: update before delete

Post by tuxor » 2014-10-27 20:06

ok, well the only data is the selected id, with that you can create mysql querys to obtain the info that you need.

Post Reply