我能够以以下方式访问用户制作的文件夹:
NotesView folder = _notesDatabase.GetView(folderName);
NotesDocument folderDoc = folder.GetFirstDocument();
但问题是它可以由“邮件”、“日历”和“待办事项”组成。
我无法区分它们。有任何想法吗?
我能够以以下方式访问用户制作的文件夹:
NotesView folder = _notesDatabase.GetView(folderName);
NotesDocument folderDoc = folder.GetFirstDocument();
但问题是它可以由“邮件”、“日历”和“待办事项”组成。
我无法区分它们。有任何想法吗?
要按文档类型区分,您通常可以使用文档上的“表单”字段值。因此,在获得文档句柄(NotesDocument 对象)之后,使用 getItemValue 来获取表单字段的值。例如:
...
NotesDocument folderDoc = folder.getFirstDocument();
String sForm = folderDoc.getItemValue("form");
if (sForm == "Memo") {
// Mail
}
if (sForm == "Appointment") {
// Calendar entry
}
if (sForm == "Task") {
// To Do
}
...
NotesView 有一个 NotesView.IsFolder 和 NotesView.IsPrivate
IsPrivate - 只读。指示条目是否特定于个人。
希望有帮助。有关更多信息,请访问 http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=/com.ibm.help.domino.designer85.doc/DOC/H_WHAT_S_NEW_IN_RNEXT_CHAP.html
并搜索 NotesView
乔什