Lotus Notes에서 사용자가 만든 폴더의 "문서"를 구별하는 방법은 무엇입니까?

StackOverflow https://stackoverflow.com/questions/1439665

  •  10-07-2019
  •  | 
  •  

문제

사용자가 만든 폴더에 액세스 할 수 있습니다.

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

그러나 문제는 "메일", "캘린더"및 "해야 할 일"으로 구성 될 수 있다는 것입니다.

나는 그것들을 구별 할 수 없습니다. 어떤 아이디어?

도움이 되었습니까?

해결책

문서 유형별로 구별하려면 일반적으로 문서에서 "양식"필드 값을 사용할 수 있습니다. 따라서 문서 핸들 (NotesDocument Object)을 얻은 후 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- 읽기 전용. 항목이 개인에 특정한 지 여부를 나타냅니다.

도움이되기를 바랍니다. 자세한 내용은 gotohttp://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를 검색하십시오

조롱

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top