Copy folder?

I searched the help file and here in the forum, but not seeing it…

Is there a way to programmatically in LotusScript create a new folder using the design of another folder?

I know I could flag a folder as the default, but I really want to keep a different view as the default. I have created a button that will create and populate a folder for each user.

So clearer example, I have View A that is my database default view. I need to keep it that way for other reasons. I have a button that I would like to create a new folder using Folder B as the design template. Can I do this in LotusScript?

TIA

Subject: Copy folder?

There’s an undocumented lotusscript command notesview.createviewfromtemplate(“NewName”)

So look up the default folder and set it to notesview, use the above command and set the new name.

Only issue with it is that the folder won’t be available until the user has gone out of the database and back in.

Subject: RE: Copy folder?

Stupid question, doesn’t that make it a view, not a folder? I need it to be a folder since I am using LotusScript to move docs into the folder.

But that is way cool, and I will totally use that elsewhere!

Subject: RE: Copy folder?

Views and folders are basically the same thing, so if your template view is in fact a folder then the new view will also be a folder.

To make more sense, what I’m saying is that if you use db.getview(“Name”), you can either get a view or a folder and perform exactly the same actions on it (except things like changing selection formulas for folders obviously)