LOTUSSCRIPT/COM/OLE CLASSES


Examples: RefreshHideFormulas method
This script recalculates the hide-when formulas on the current document whenever a user exits a particular field. For example, a graphic on a form is hidden whenever Status = "Draft." The following script runs whenever the user exits the Status field. Therefore, when the user changes the Status field to "Draft" and exits the field, the graphic is hidden; when the user changes the Status field to "Final" and exits the field, the graphic is displayed.

Sub Exiting(Source As Field)
 Dim workspace As New NotesUIWorkspace
 Dim uidoc As NotesUIDocument
 Set uidoc = workspace.CurrentDocument
 Call uidoc.RefreshHideFormulas
End Sub

See Also