Domino Code Fragment

Code Name*
NotesUIDocument method, Save
Date*
04/28/2024
Source (or email address if you prefer)*
Rlatulippe@romac.com
IP address:.3.144.248.24
Description*
Save the on screen document that is set to a NotesUIDocument variable, use the NotesUIDocument method, Save .
Type*
LotusScript
Categories*
(Misc)
Implementation:
Required Client:
Server:
Limitations:
Comments:
To save the on screen document that is set to a NotesUIDocument variable, use the NotesUIDocument method, Save . This method will not save the document if the document is not in edit mode. When Save is executed, the data in the NotesUIDocument object is passed to the NotesDocument object, which is then in turn saved to disk. Note that this method is different than the method for the class NotesDocument. This method cannot be executed, unless it is saving the on screen document.
Files/Graphics attachments (if applicable): Code:
Syntax
Call notesuidocument.Save

Sub Click(Source As Button)
Dim workspace As New NotesUIWorkspace
'Declare workspace as type NotesUIWorkspace
Dim uidoc As NotesUIDocument
'Declare uidoc as type NotesUIDocument
Set uidoc = workspace.CurrentDocument
'Set uidoc to the on screen document
Call uidoc.Save
'Save the on screen document
End Sub


Click here to view the example.