Article Details
Id: | 10340 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 1.06.00 |
Opened: | 20/07/2012 |
Closed: | 23/07/2012 |
Released: | 01/08/2012 |
Job: | J010053 |
Archives; new script added to update UserData
New "AccountArchivePre" and "AccountArchivePreInTransaction" script events have been added to Global Settings, Accounts, Scripts.
This allows UserData to be updated by the User, potentially storing any additional information required. This information is displayed when viewing the Archive.
It also allows database information to be in "AccountArchivePreInTransaction", eg to move certain Logs to the main Client.
The script can also cancel the Archive by setting "Main" to False.
Sample script code:
Dim AccountArchive As finAccountArchive
' Assume Success
Main = True
' Initialise
AccountArchive = DirectCast(source, finAccountArchive)
' Handle Events
Select Case eventId
Case "AccountArchivePre"
' Populate UserData with additional information you want to save with the Archive. Return False to cancel.
With AccountArchive.UserData
.SetString("A", "Some test information")
End With
End Select
Note, at present Archives are only used when Declining or Unwanting an Account.