Lotus Software logo
IBM Lotus Domino Designer 8.5
  Versions 8.5 and 8.5.1






Save method

Saves any changes you have made to a document.

Defined in

NotesDocument

Syntax

flag = notesDocument.Save( force, createResponse [, markRead ] )

Parameters

force

Boolean. If True, the document is saved even if someone else edits and saves the document while the script is running. The last version of the document that was saved wins; the earlier version is discarded.

If False, and someone else edits the document while the script is running, the createResponse argument determines what happens.

createResponse

Boolean. If True, the current document becomes a response to the original document (this is what the replicator does when there's a replication conflict). If False, the save is canceled. If the force parameter is True, the createResponse parameter has no effect.

markRead

Boolean. If True, the document is marked as read on behalf of the current user ID. If False (default), the document is not marked as read.

Note If the database does not track unread marks, all documents are considered read, and this parameter has no effect.

Return value

Usage

Avoid using this method in a document returned by NotesUIDocument.Document. Use NotesUIDocument.Save instead. Otherwise, a user who saves in the front-end creates a save conflict.

Language cross-reference

save method in Java Document class

@DocMark function in formula language

FileSave @command in formula language

See examples

Examples: Save method
Related topics
Copying an item in LotusScript classes
Creating an item and assigning values in LotusScript classes
Locating documents within a view or folder in LotusScript classes
Mailing a document in LotusScript classes
Refreshing a view or folder
Removing an item in LotusScript classes
Disabling unread marks for modified documents




Library | Support | Terms of use |

Last updated: Monday, October 5, 2009