Id: | 11925 |
Product: | finPOWER Connect |
Type: | FIX |
Version: | 2.01.00 |
Opened: | 19/05/2014 |
Closed: | 30/05/2014 |
Released: | 27/06/2014 |
Job: | J013286 |
Action Scripts; Do not recieve additional parameters from Application Shortcut URL
When run from an Application Shortcut URL, Action Scripts did not recieve other URL parameters, e.g. in the following example, the 'Test' parameter would not have been available to the Action Script:
app://FormAction?action=ActionScript_MyScript&Test=Hello
Since Action Scripts can define their own Parameters (via the Parameters page on the Scripts form), the parameters passed as part of an Application Shortcut URL are passed to the Script the ScriptInfo.Properties Key/Value list.
The Action Script access the parameters as follows:
Test = ScriptInfo.Properties.GetString("Test")
The Properties are available to the Script from the 'AfterParametersInitialise', 'AfterParametersFinalise' and 'Execute' events hence they can be used to set defaults for the Script's Parameters in the 'AfterParametersInitialise' event as follows:
parameters.SetString("Test", ScriptInfo.Properties.GetString("Test"))
All forms that can utilise Action Scripts have been updated.