0
votes

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
Please clarify what you are trying to achieve. A folder and a document in Notes/Domino is two different things. In your code example you are adding items to a document but you are not doing anything related to a folder. - Per Henrik Lausten
Thanks for the reply..i am trying to add a new folder.If my approach itself is wrong please guide me in the correct direction. - Phoenix
thanks bro..it indeed solved the problem.i am able to create folder with EnableFolder method. - Phoenix
Great to hear. I've added an answer - Per Henrik Lausten

1 Answers