1

I am able to access User Made Folder as:

 NotesView     folder        = _notesDatabase.GetView(folderName);
 NotesDocument folderDoc     = folder.GetFirstDocument();

But problem is that it can consist of "Mail","Calendar" and "To Do".

I am not able to differentiate them. Any ideas?

John Saunders
  • 160,644
  • 26
  • 247
  • 397
Preeti
  • 1,386
  • 8
  • 57
  • 112

2 Answers2

2

To differentiate by document type, you can generally use the "form" field value on a document. So, after you get the document handle (the NotesDocument object), use getItemValue to get the value of the form field. For example:

...
NotesDocument folderDoc = folder.getFirstDocument();
String sForm = folderDoc.getItemValue("form");
if (sForm == "Memo") {
 // Mail
}
if (sForm == "Appointment") {
 // Calendar entry
}
if (sForm == "Task") {
 // To Do
}
...
Ed Schembor
  • 8,090
  • 8
  • 31
  • 37
0

The NotesView has a NotesView.IsFolder and NotesView.IsPrivate

IsPrivate- Read-only. Indicates whether an entry is specific to an individual.

Hope that helps. For more information goto 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

and search for NotesView

Josh