LOTUSSCRIPT/COM/OLE CLASSES


Examples: Refresh method
This script refreshes the current document whenever the user moves the cursor out of a particular field.

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

For example, this script might run whenever the user exits the Group field. If Supervisor is a computed field with the formula

@If( Group = "Editorial"; "Stephanie Mavis";  _
    Group = "Graphic Design"; "David Mayar"; _
    Group = "Production"; "Peter Orveton"; "" )

the Supervisor field recalculates its value whenever the user exits the Group field.

See Also