Article Details
Id:11594
Product:finPOWER Connect
Type:NEW
Version:2.00.02
Opened:06/12/2013
Closed:06/12/2013
Released:05/02/2014
Job: J012644

Account Payment Details update; added Script events to handle additional processing requirements

The Account Payment Details Update wizard/ object has new Script events to handle additional processing requirements.

A script of type "Object Events", object "AccountPaymentDetailsUpdate" should be created to handle Payment Detail Change events. After a script has been created, it must be linked to the Global Settings, Accounts, Scripts page, "AccountPaymentDetailsUpdate" event script.

The script can handle four events:

ExecuteCommitPre
Runs at the start of ExecuteCommit and can be used to validate and tweak values. Return False, with an error message, to cancel the Commit.

ExecuteCommitPreInTransaction
Runs during ExecuteCommit, after a Database Transaction has begun but before any work has started. It can be used much like the ExecuteCommitPre event, but because it is in a Database Transaction must not be used to interact with the user.

ExecuteCommitPostInTransaction
Runs during ExecuteCommit, after work has been completed but before the Database Transaction is committed. Use to implement additional functionality that must be part of the overall Commit.

ExecuteCommitPost
Runs at the end of ExecuteCommit. Since the Database Transaction is complete use with caution. Any failure here will not affect the overall Commit.