Friday, January 18, 2008

how to don't save computed fields in document

this question was at ibm's forum, so I wish to refresh memory... don't forget about:

notesItem.SaveToDisk=false/true

by the way, and don't foget about this simple thing. How we can add authors or readers in documents.

notesItem.IsAuthors=true
notesItem.IsReaders=true

3 comments :

Probka said...

>notesItem.SaveToDisk.Authors=names
Можно чуть-чуть побольше про эту конструкцию?

Dmytro said...

ну со всеми бывает :))) самому смешно.

бог с ним если бы просто notesitem.Authors = names... пол беды, еще и SaveToDisk


Спасибо!

Tommy Valand said...

You may probably be aware of this shortcut.

Since NotesDocument.ReplaceItemValue returns a NotesItems, you can set a readers field on one line:

e.g.
doc.replaceItemValue( "reader", "librarian" ).isReaders = True