Refresh a document's fields after one field is changed

Mindwatering Incorporated

Author: Tripp W Black

Created: 08/26/1999 at 07:51 PM

 

Category:
Notes Developer Tips
LotusScript

How do I refresh a document's fields after one field is changed?

Place this in the exiting event of the field that will trigger changes in other fields:

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

The "Refresh fields on keyword change" option does not work on anything other than static keyword lists.
One bad side-effect is that the uidoc.Refresh will cause all the field input validation formulas to be run; you may want to
cause the refresh to happen only if all the fields with input validation have been filled in.


previous page