PML Customisation
User Guide
FMSYS Object and its Methods
: CurrentDocument() Method
CurrentDocument() Method
This method returns the current Document of the application framework as a
FORM
object. If there is no current document then the returned form has value
Unset
.
It has the following declaration:
!!FMSYS.currentDocument( ) is FORM
This method should be useful when constructing callbacks for menus or gadgets which are not on the current document form, i.e. where the context is not the current form or view gadget, e.g. callbacks from the Main menu system or from pullright menus on
Addin
forms.
!myDocument = !!FMSYS.currentDocument()
1974 to current year.
AVEVA Solutions Limited and its subsidiaries. All rights reserved.