Article Details
| Id: | 10305 |
| Product: | finPOWER Connect |
| Type: | NEW |
| Version: | 1.06.00 |
| Opened: | 10/07/2012 |
| Closed: | 12/07/2012 |
| Released: | 01/08/2012 |
| Job: | J009984 |
Wizard Validator Scripts can now use parameters defined in an Application Shortcut
When a wizard, e.g., the Account Payment wizard is opened via an Application Shortcut, the Wizard Validator Script can now access any ad-hoc parameters passed when opening the wizard form.
The following wizards now support this functionality:
- Account Payment
- Account Payment Arrangement
- Account Payment Promise
An example Summary Page Script to open the Account Payment wizard with a custom parameter (TransType) is shown below:
Public Function Main(ByVal source As Object, _ByVal target As iseSummaryPageTarget, _ByVal formRecordMode As iseFormRecordMode, _ByVal contextData1 As Object, _ByVal contextData2 As Object, _ByRef text As String) As Boolean' Assume SuccessMain = Truetext = "<a href='app://FormShow?form=AccountPayment&id=L10000&TransType=PAY2'>Test</a>"End Function
An example of an Account Payment Wizard Validator Script using the custom 'TransType' parameter is shown below:
Public Function Main(ByVal userInterface As ISUserInterfaceBL, _ByVal reports As ISfinReports, _ByVal eventId As String, _ByVal targetObject1 As Object, _ByVal targetObject2 As Object, _ByVal pageId As String, _ByVal parameters As ISKeyValueList, _ByRef outcome As isefinDecisionOutcomeStatus, _ByRef outcomeMessage As String, _ByRef focusControlId As String) As BooleanDim AccountPayment As finAccountPayment' Assume SuccessMain = True' InitialiseAccountPayment = DirectCast(targetObject1, finAccountPayment)' Handle EventsSelect Case eventIdCase "TargetObjectChange"' The target object source has been changed. Set any defaults or perform initialisation here' Default Transaction Type if possibleIf ScriptInfo.FormApplicatonShortcut IsNot Nothing ThenAccountPayment.TransactionTypeId = ScriptInfo.FormApplicatonShortcut.Parameters.GetString("TransType")End IfEnd SelectEnd Function