Article Details
Id: | 10748 |
Product: | finPOWER Connect |
Type: | NEW |
Version: | 1.06.06 |
Opened: | 28/11/2012 |
Closed: | 29/11/2012 |
Released: | 29/01/2013 |
Job: | J010827 |
Documents now have access to a '_FormKey' parameter detailing the form from which they are being published
Documents, e.g., Word VBA Templates now have access to a '_FormKey' parameter detailing the form from which the Document is being published. This allows the Document to behave differently based upon where it was published from.
The following example shows how to retrieve the Form Key from a Word VBA template:
' Get Variables
mDocumentId = mParameters.GetString("DocumentId")
mFormKey = mParameters.GetString("_FormKey")
The 'Form Key' for a Form can be determined as follows:
- Open the form.
- Right-click on the Form's tab.
- Select Special, Form Details
NOTE: In certain circumstances, e.g., when a Document is published from an Application Shortcut no Form Key is available. Also, this is NOT the form from which the Document was created, it is the form from where it is being published.