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

Account Interest Cycle Change; added Script events to handle additional processing requirements

The Account Interest Cycle Change wizard/ object has new Script events to handle additional processing requirements.

A script of type "Object Events", object "AccountInterestCycleChange" should be created to handle Interest Cycle Change events. After a script has been created, it must be linked to an Account Type on the Scripts page, "InterestCycleChange" 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.

In addition there is a new property on finAccountInterestCycleChange "AccountHistoryPk". This can be used in either Post events to examine the Account History record created by the change.