Article Details
Id: | 18589 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 3.04.02 |
Opened: | 20/09/2021 |
Closed: | 20/09/2021 |
Released: | 02/12/2021 |
Job: | J027422 |
Scripting; Action Scripts; "GetState" examples have been enhanced to include ScriptInfo.FormRecordMode
ScriptInfo.FormRecordMode can be used to determine what state a Form is in; whether it be blank, loaded, in edit mode or a new record being added. This is particularly useful in the "GetState" event of Action Scripts. Due to this, the code sample included in the Template Code for these Scripts has been updated to include this in the examples, so Developers are aware it can be used.Case "GetState"
' Add code to determine the state (enabled, visible and caption) of this action
' parameters.SetBoolean("visible", False)
' parameters.SetBoolean("enabled", ScriptInfo.FormRecordMode = iseFormRecordMode.Loaded)
' parameters.SetString("caption", "Action Caption")