QSRules, Hooks, Deletions

Feb 06, 2007 1 Replies

Greetings



Can anyone confirm that there is not way to hook a deletion of an item via a hook, i.e. as opposed to using additem and saveitems hooks.



Also, in the POS, items can be accessed via the Session.transaction.... syntax. What would be the similar syntax for accessing an item when the user is adding an item in the SO Manager?



Cheers



JPH


Are you talking about deleting an item from the database or removing an item from the transaction? Either way, there is no deleteItem hook, but you could simulate one for the deletion from the database by using RMS Security features to disable the "Delete" button. This would prevent the user from deleting items and would force them to make items Inactive instead. This would trigger the saveItem hook when they hit the "OK" Key.

The only item hook you can get in SO Manager is saveItem. This does not pass a session, it passes the ID of the new/saved item. You would then use SQL calls to get the properties of the item based on the passed in ID.

Glenn Adams Tiber Creek C> Greetings

Join the Discussion

Have something to add? Share your thoughts — no account required.

Didn't find your answer?

Ask the community — no account required