我在我的Lotus notes(8.5.2)版本中使用本地数据库,我试图获取两件事的数据:
- a中突出显示的文档/项目
NotesUIView
- 在 a 中选择的文档
NotesUIDocument
但是,我得到的只是 Notes URL,我不知道应该如何处理这些 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();
}