Domino 9 und frühere Versionen > Entwicklung
how to mark a doc read/unread from mail db ?
Toma Bogdan:
but what I want to do is to mark the docs from mail database that was read .... how can I make this ?
Rob Green:
Toma, the Notes Help is quiet good...its worth a look ;) ;)
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. If False (default), the document is not marked as read.
Toma Bogdan:
so I need to enter in edit mode to save it, isn't it ?
Rob Green:
nay, the method .save derives from the NotesDocument class. Since its a backend class you can do all manipulations in backend without frontend editing.
Hey, Toma btw: dont you live in a sunny area of USA? You know what, send me a warm breeze to good ol´& cold Germany. Its time for spring. :'(
Toma Bogdan:
yeap Rob .... it is time for spring but here last night starts (again) to snow... btw I want to live in USA doesn't matter the region 8)
10x & regards
Navigation
[0] Themen-Index
[*] Vorherige Sete
Zur normalen Ansicht wechseln