: 4582 | 108638 | 12353

Extend the NotesDatabase class to have a CreateFolder method 
New idea submissions, commenting and voting are no longer available on this site. Logins have also been disabled.
Use this IdeaSpace to post ideas about Domino Designer.

: 4
: 10
: 6
: Domino Designer
: enhancement, LotusScript, NotesDatabase
: Ken Haggman598 05 Mar 2011
: / Email
Currently, the NotesDatabase class has no method for creation of new folders.
There is a method for creating a new view, but not a folder.
It is possible to use the C API (the folderCreate API) to do this from LotusScript - I have successfully used it on numerous occasions - but a native LotusScript method would be preferable.

1) Nikolay Yushmanov1437 (05 Mar 2011)
What about method:
Set notesView = notesDatabase.CreateView( [ viewName$ ] , [ viewSelectionFormula$ ] , [ templateView ] , [ prohibitDesignRefreshModifications ] )
with templateView = existing_template_folder

There is method notesDatabase.EnableFolder( foldername$ ) also.
2) Ken Haggman598 (07 Mar 2011)
The NotesDatabase.CreateView method creates a view, not a folder.
3) Dan King2533 (07 Mar 2011)
Ken, if your templateView is a folder it will create a folder for you.
4) Kenneth Axi1694 (10 Aug 2011)
Both of Nikolays ways will create a new folder, so I don't see the need for yet another function to do so.
5) Oliver Koss14 (05 Oct 2011)
How can I create a "shared, personal on first use"-folder this way?

notesDatabase.EnableFolder( foldername$ )...
gives me a "Canīt move document to shared folder (first Document)"

Set notesView = notesDatabase.CreateView(...
gives me a "Invalid view template for CreateView"

I want to create private folders in the backend without user interaction for different users.
6) Kevin Pettitt832 (21 Jan 2012)
Not sure why everyone thinks that the CreateView method will work as it certainly didn't for me. Yes my template "view" was a folder. Maybe a proper code example would clear up my confusion, as the blurb from the Designer Help did not.

In any case, here's a great example of doing this via the C API: { Link }


Welcome to IdeaJam™

You can run IdeaJam™ in your company. It's easy to install, setup and customize. Your employees, partners and customers will immediately see results.

Use IdeaJam to:

  • Collect ideas from employees
  • Solicit feedback and suggestions from employees and customers
  • Run innovation contests and competitions
  • Validate concepts
  • Use the power of "crowd-sourcing" to rank ideas and allow the best ideas to rise to the top

IdeaJam™ works with:

  • IBM Connections
  • IBM Lotus Quickr
  • Blogs and Wikis
  • Websphere Portal
  • Microsoft Sharepoint
  • and other applications.

IdeaJam has an extensive set of widgets and API's that allow you to extend and integrate IdeaJam™ with other applications.

Learn more about IdeaJam >>

Use more customization features in ND9 NotesMail
Two-week Calendar view
@Formula library
Drafts - unsent count?
New Hide-When property
Activity Logging for Quickr
"follow-up complete" flag
Remake Resource Reservation template using XPage
Boolean operators on LDAP group based access control
Store IP Address / remote host data in Password Lockout documents
Checking Out-Of-Office status of others
Tool to show unreferenced design elements for easy cleaup
Bring sametime audio and video into the web browser using WebRTC
"Window Title" for views
QuickR application/widgets for Android/iPhone
Create Computed Text with the same text style as the current paragraph
@Function and LotusScript to "View..Customize This View" dialog
Extend the 'User detail' info of a database
Print of calendar in color
Shared Actions belong under Shared Elements
Facelift all web enabled templates with xPages
Please extend WebDAV to include calDAV & cardDAV support for contacts/calendar syncing
Skin-ing Notes Design elemens
Add some views into the "Views" section of the Notes 8.5 mailbox

IdeaJam developed by

Elguji Software Logo