Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Security with SOP_Password

Status
Not open for further replies.

Borvik

Programmer
Jan 2, 2002
1,392
US
Just a tip for anyone else trying to create a trigger on SOP_Password.

Make sure you register your script as TRIGGER_AFTER_ORIGINAL, otherwise the action will still work.

I had tried "abort script", "reject script", and also tried throwing OUT_Err = 1 before both the abort and reject - and nothing prevented the delete/void of an order.

I then finally tried all the options abort/reject script with and without setting OUT_Err to 1 and found the following combinations:
TRIGGER_AFTER_ORIGINAL
abort script; -> still allows action
OUT_Err = 1; abort script; -> prevents action
reject script; -> prevents action
OUT_Err = 1; reject script; -> prevents action

Hopefully that can save someone else some headaches.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top