首页 Domino中的特殊文档
文章
取消

Domino中的特殊文档

$FormulaClass

Note Class TypeHex ValueDecimal ValueComments
NOTE_CLASS_DOCUMENT0x00011document note
NOTE_CLASS_INFO0x00022notefile info (help-about) note
NOTE_CLASS_FORM0x00044form note
NOTE_CLASS_VIEW0x00088view note
NOTE_CLASS_ICON0x001016icon note
NOTE_CLASS_DESIGN0x002032design note collection
NOTE_CLASS_ACL0x004064acl note
NOTE_CLASS_HELP_INDEX0x0080128Notes product help index note
NOTE_CLASS_HELP0x0100256designer's help note
NOTE_CLASS_FILTER0x0200512filter note
NOTE_CLASS_FIELD0x04001024field note
NOTE_CLASS_REPLFORMULA0x08002048replication formula
NOTE_CLASS_PRIVATE0x10004096Private design note, use $PrivateDesign view to locate/classify
NOTE_CLASS_DEFAULT0x800032,768MODIFIER - default version of each
NOTE_CLASS_ALL0x7fff32,767all note types
NOTE_CLASS_ALLNONDATA0x7ffe32,766all non-data notes
NOTE_CLASS_NONE0x00000no notes

Note IDDatabase Element
FFFF0002"About This Database" document
FFFF0004Default form
FFFF0008Default view
FFFF0010Database icon
FFFF0020Database Design Collection (view)
FFFF0040Database ACL
FFFF0100"Using This Database" document
FFFF0800Replication Formula

You'll notice that the last 4 numbers of the Note IDs are the hex values of the corresponding design elements in the previous tip. What's neat about this (and it makes sense if you think about it) is that these Note IDs are the same for every Notes database, so if you call:
db.GetDocumentByID("FFFF0002")

获得所有iNotes简要表信息

Dim s As New NotesSession
Dim db As NotesDatabase
Dim doc As NotesDocument
Set db=s.currentdatabase
Set doc = db.GetProfileDocument("iNotesProfile")
ForAll item In doc.Items
Print item.Name + |:| + item.Text+ Chr(10) + Chr(13)
End ForAll

删除所有简要表

Dim s As New NotesSession
Dim db As NotesDatabase
Dim col As NotesDocumentCollection
Set db = s.currentdatabase
Set col = db.GetProfileDocCollection
Call col.RemoveAll(True)
Messagebox"All Profiles Document Deleted"

链接:Lotus Notes and Domino Tips

本文由作者按照 CC BY 4.0 进行授权