私のバージョンのLotus notes(8.5.2)でローカル データベースを使用しており、次の 2 つのデータを取得しようとしています。
- で強調表示されたドキュメント/アイテム
NotesUIView - で選択したドキュメント
NotesUIDocument
しかし、取得できるのはノーツの URL だけであり、それらをどうすればよいかわかりません。誰か助けてくれますか、パンくずリストを投げてくれますか?
PS はい、Java API for Eclipse を使用しています。
これが私がしていることのコードサンプルです:
NotesUIWorkspace workSpace = new NotesUIWorkspace();
NotesUIElement currentElement = workSpace.getCurrentElement();
if (currentElement instanceof NotesUIView) {
NotesUIView currentView = (NotesUIView) currentElement;
NotesUIViewEntryCollection collection = currentView
.getActionableEntries();
Iterator docIterator = collection.documentIterator();
while (docIterator.hasNext()) {
NotesUIDocumentEntry entry = (NotesUIDocumentEntry) docIterator.next();
//I can't seem to get to the NoesUIDocument case like I can below... I want fields!
}
}
if(currentElement instanceof NotesUIDocument){
NotesUIDocument document = (NotesUIDocument) currentElement;
//Seem to be able to get the correct data fields only in this case!
document.getFields();
}