Creating Folder using Java in lotus notes

喜欢而已 提交于 2019-12-11 14:06:16

问题


hi I am trying to create a folder using java in Louts notes.I have created an agent in Domino Designer.I have created a document and i am setting the following properties of the document. Here is the code.

    doc.replaceItemValue("$ColumnFormatItem", "$Sender1");
    doc.replaceItemValue("$ColumnFormatExtItem", "$Sender1");
    doc.replaceItemValue("$ColumnProfileDoc", "ColorProfile");
    doc.replaceItemValue("$DesignerVersion", "8.5.3");
    doc.replaceItemValue("$FormulaClass", "1");
    doc.replaceItemValue("$Name", "SmithsFolder");
    doc.replaceItemValue("$PublicAccess", "1");
    doc.replaceItemValue("$ThreadView", "$ThreadsEmbed");

    doc.replaceItemValue("$Title", "SmithsFolder");
    doc.replaceItemValue("$ViewInheritedFrom","($Inbox)");
    doc.replaceItemValue("$BrowserRender", "Body");
    doc.replaceItemValue("$WebFlags", "S");
    doc.replaceItemValue("Form", "Memo");
    doc.replaceItemValue("Importance", "2");
    doc.replaceItemValue("NamePreference", "0");
    doc.replaceItemValue("priority_tcs", "Internal");
    doc.replaceItemValue("useApplet", "True");
    doc.replaceItemValue("ConfidentialString", "Confidential");
    doc.replaceItemValue("DefaultMailSaveOption", "1");
    doc.replaceItemValue("DisplayFrom", "");
    doc.replaceItemValue("ExpandPersonalGroups", "1");
    doc.replaceItemValue("NamePreference", "0");

And after this i am saving the document.but i cannot see any folder getting created.Please help.


回答1:


Take a look at the enableFolder method in order to create a folder: http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/index.jsp?topic=%2Fcom.ibm.designer.domino.main.doc%2FH_ENABLEFOLDER_METHOD_JAVA.html



来源:https://stackoverflow.com/questions/21135476/creating-folder-using-java-in-lotus-notes

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!