次のようにユーザー作成フォルダにアクセスできます。
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を検索します
ジョシュ