Lotus Software logo
IBM Lotus Domino Designer 8.5
Versions 8.5, 8.5.1, 8.5.2, and 8.5.3






NotesDocument (JavaScript™)

Represents a document in a database.

Creation

To create a new NotesDocument object, use createDocument in NotesDatabase.

Access

To access existing documents:

Once you have a view, you can navigate to a specific document using methods in the NotesView class.

Once you have a collection of documents, you can navigate to a specific document using methods in the NotesDocumentCollection class.

Saving changes

After you create, modify, or delete a document, you must save the changes by calling the save method. If you don't call save before the program finishes, all of your changes to a NotesDocument object are lost.

If you create and save a new document without adding any items to it, the document is saved with one item $UpdatedBy. This item contains the name of the creator of the document.

Encryption

A program attempts to decrypt an encrypted document the first time the program accesses one of the NotesDocument properties or methods. If decryption fails, an exception is thrown.

XSP context

The NotesDocument class works directly with the Domino® data store. To work with a Domino document data source on an XPage, see NotesXspDocument.



Library | Support | Terms of use |

Last updated: Tuesday, September 20, 2011