: 4204 | 102771 | 11462

Create empty NotesDocumentCollection  
You may have noticed that IdeaJam now looks a bit different. That's because we are testing out some new themes that will be included with IdeaJam V2.0 coming in 2012. If you have any feedback about the new themes we would be happy to hear what you have to say. Please drop us a note.
Use this IdeaSpace to post ideas about Domino Designer.

: 176
: 181
: 5
: Domino Designer
: lotusscript
: Randy Smith10311 31 Oct 2007
:
: / Email
LotusScript needs a method for creating an empty NotesDocumentCollection object.  Many of us have "silly looking" techniques to create an empty collection anyway.  A sort method for a NotesDocumentCollection would also be nice.



1) Mika Heinonen8997 (31 Oct 2007)
Doesn't "If col is Nothing" do the same?
2) James Summerton3844 (31 Oct 2007)
Correct me if I am wrong, but I think what Randy is getting at is having something like:

set dc = New NotesDocumentCollection(db)

That would give you an empty documentcollection to do things with, instead of having to do a null search or something else that costs extra processing to achieve the same result.
3) Randy Smith10311 (31 Oct 2007)
Exactly James. Without a New method to instantiate an object of this class, we have to be a bit creative (and as a result, less efficient) by using methods of other classes to create the empty collection (bogus search, responses to a bogus profile document, etc.).

If I create subs/functions that take a NotesDocucumentCollection as one of the arguments, I want an easy method for creating an empty collection and then adding the documents that need to be processed by the sub/function to the collection.
4) Keil Wilson166 (09 Nov 2007)
I like the idea of a creating an empty collection. I too have some goofy code for getting an empty collection. But I think the sorting thing is redundant. The ViewEntryCollection already allows you to do this. It is a little more complicated than working with a doc collection, but it's not very difficult to do.
5) Carl Tyler14206 (16 Nov 2007)
I think NotesDocumentCollection.sort should really be called out on it's own, it is a much wanted feature.
6) Scott Cochrane5093 (21 Nov 2007)
Yes, a 'new' method would be nice - and less silly :-)
7) Corey Davis3401 (29 Nov 2007)
I don't think I have ever had the need to create an empty document collection. What would be a reason for needing this?
8) Randy Smith10311 (30 Nov 2007)
@7 - It isn't a technique that I use often, but at times I do have a need to create an empty document collection (for folder processing, workflow processing, etc.). Having an empty collection is not the goal though. The goal is to have total programmatic contol over which documents are included in the collection and not be at the mercy of methods of other classes that are used to create a collection.
9) Peter Presnell65165 (16 Dec 2007)
There must be a lot of us employing the "silly search" technique to get an empty Notesdocumentcollection. If new NotesDocumentCollection is too hard perhaps IBM coluld give use a NotesDatabase.doSillySearch method to simplify the code a little!
10) Marko Bonaci18 (17 Jan 2008)
The reason could be that e.g. you created the function that does some processing on collection of docs and then afterwards you would like to call that function on a few docs that aren't gathered using one collection's init. methods so you have to call profileDoc.Responses in order to create empty collection, but then the profileDoc remains in your db, unless you dereference it and delete it using it's noteID...

It's simply fundamental in OO development.
11) Scott O'Keefe505 (28 Feb 2008)
This is actually available - right now! Try this:

do some dimmin', then

Set yourDocCollection = yourDb.CreateDocumentCollection()

Voila! You've got an empty NotesDocumentCollection. It doesn't appear to be documented, but it is used in the LotusInboxCleanup agent in the mail8.ntf.
12) Frank Strunzkus190 (18 Mar 2009)
Yes please give an option to sort collections ! I'am looking for this since years.
13) Michael Schlömp42 (07 Sep 2009)
I agree. The sorting of a DocumentCollection would be great.
14) Erik Brooks1740 (22 Feb 2010)
This feature was delivered (though undocumented) in (I believe) 8.0.2.
15) Bruce Elgort14566 (22 Feb 2010)
Erik and way you can help us ensure that this idea is actually complete?
16) Randy Smith10311 (03 Mar 2010)
The CreateDocumentCollection method of the NotesDatabase class is still not documented in Domino Designer 8.5 Help.
17) Erik Brooks1740 (05 Mar 2010)
SPR # DMAT72JLWW Fixed in release: 7.0.4

Product Area: Designer Technical Area: LotusScript Platform: Cross Platform

Lotus Customer Support APAR: LO28240 What is an APAR?

SPR# DMAT72JLWW - Added NotesDatabase.CreateDocumentCollection method to create empty doc collection.


Might be in 8.5.1's documentation, I'd have to check.
18) Bas van Gestel6196 (12 Aug 2010)
Please note that createdocumentcollection still has issues. Using the Subtract and Merge functions fail. That's probabably why it's undocumented.










:
:

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 >>


10
Searching in the mail archive with using the search toolbar
1
"Build Automatically" and "Clean"
-1
Ability to set up facebook-like user activity tracking
-3
Add the ability to set a unique org unit in a registration settings policy document
14
Support SHA-2 certificates in Lotus Notes 8.5.x
21
Clean-up recent contacts if not used for X days
11
Out of Office handling from Traveler
13
Reopen recently closed tabs
16
Add Redo function to Notes client.
15
More options for disabling Recent Contacts
2
Virtual meeting place in Connection
5
@Mentioning in Connections
20
Out of Office linked to calender entry
4
Automatic redirection to Connections Mobile according device type
6
Provide a configurable path for saving mail attachments
3
Mobile Connections app to use notifications







IdeaJam developed by