Article Details
Id: | 12881 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 2.03.00 |
Opened: | 12/05/2015 |
Closed: | 12/05/2015 |
Released: | 09/07/2015 |
Job: | J015445 |
Better handling of FormAction Application Shortcuts from Scripts
A new helper method has been added to assist with the creation of a different kind of FormAction type Application Shortcut:
- finBL.CreateApplicationShortcutFormAction(form, action, actionData, open, activate)
The actionData parameter is always a String which is useful for creating certain types of FormAction, e.g., the Task Manager form has a "WorkflowRefresh" action that expects an "actionData" parameter to be an XML Key/ Value List (e.g., with a Boolean parameter Added=True).
The following Script sample does just this:
Public Function Main(parameters As ISKeyValueList) As Boolean
Dim ApplicationShortcut As ISApplicationShortcut
Dim Params As ISKeyValueList
' Assume Success
Main = True
Params = finBL.CreateKeyValueList()
Params.SetBoolean("Added", True)
ApplicationShortcut = finBL.CreateApplicationShortcutFormAction("TaskManager", "WorkflowRefresh", Params.ToXmlString(), False, True)
Main = finBL.ExecuteApplicationShortcut(ApplicationShortcut)
End Function
The Form Details reports has also been updated with a new "Notification Actions" section.