Lotus Notes FAQ Visit Our Sponsor!

How do I refresh a page without losing information already entered?

Refreshing Keyword Fields
This is supported in Notes 4.6 if you turn on JavaScript support for the database.

Use $$Return
Save the document along with a "done" flag. If the document is not done and you want to refresh the document, you can use the $$Return field to reload the document in edit mode.

Use $$QuerySave Agent
Put this in a $$QuerySave Agent:

  Sub Initialize
    Dim s As New NotesSession
    Dim doc As NotesDocument
    Set doc=s.DocumentContext
    If doc.Done(0) = "No" Then
      Call doc.Save(True,False)
      Print "[http://domainname/databasename.nsf/viewname/"+doc.UniversalID+"?Editdocument]"
    Else
      Call doc.Save(True,False)
    End If
  End Sub

If the document is not marked as done, it will be reloaded in edit mode.


Applies to Notes Versions: 4, 4.5, 4.6
Last Modified: December 8, 1997