: 3492 | 87812 | 9797

Create empty NotesDocumentCollection  
Now Available: "The Social Software Platform You Already Own" Position Paper from Elguji Software. A must read for every IBM Lotus Software customer.
Use this IdeaSpace to post ideas about Domino Designer.

: 161
: 165
: 4
: Domino Designer
: lotusscript
: Randy Smith 30 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 Heinonen (30 Oct 2007)
Doesn't "If col is Nothing" do the same?
2) James Summerton (30 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 Smith (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 Wilson (08 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 Tyler (15 Nov 2007)
I think NotesDocumentCollection.sort should really be called out on it's own, it is a much wanted feature.
6) Scott Cochrane (20 Nov 2007)
Yes, a 'new' method would be nice - and less silly :-)
7) Corey Davis (28 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 Smith (29 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 Presnell (15 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 Bonaci (16 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'Keefe (27 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 Strunzkus (17 Mar 2009)
Yes please give an option to sort collections ! I'am looking for this since years.
13) Michael Schlömp (07 Sep 2009)
I agree. The sorting of a DocumentCollection would be great.
14) Erik Brooks (21 Feb 2010)
This feature was delivered (though undocumented) in (I believe) 8.0.2.
15) Bruce Elgort (21 Feb 2010)
Erik and way you can help us ensure that this idea is actually complete?
16) Randy Smith (02 Mar 2010)
The CreateDocumentCollection method of the NotesDatabase class is still not documented in Domino Designer 8.5 Help.
17) Erik Brooks (04 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 Gestel (12 Aug 2010)
Please note that createdocumentcollection still has issues. Using the Subtract and Merge functions fail. That's probabably why it's undocumented.










:
:

Buy IdeaJam Today!


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

Phone: +1 (360) 450-5022

Email: sales@elguji.com

Learn more >>

Welcome to IdeaJam


IdeaJam is a place where people can post and share their ideas, and gauge the marketability, popularity and viability with input from others.

When an idea gets posted, others can help promote or demote the idea and provide comments. Popular ideas will bubble to the top.

Make your opinion count.

Share


Post your idea - from ways we can improve IBM Lotus Software to things we've haven't even yet thought of.

Vote


Check out other people's ideas and vote on the ones you like best. The community votes. The community decides.


Discuss


Talk about ideas with your peers in the IBM Lotus Community and help make them even better.



4
ideajam ideas - Lotusphere
-5
Make Ideajam database as default application on domino
18
All Design Elements view in Designer
0
Create an AppStore for $1.99 apps
13
Symphony API integration in Agents
5
In the view-quick-search dialog, there should an "advanced search" option to find a document in the current view based on the NoteID or UNID
8
Standardize Definition of Application
12
Cleanup process for mystery problems
3
DDM could benefit from addng Twitter or SMS to Notifications
15
license model for universities and schools (education)
4
Dogear: Plugin for many browsers to store bookmark in dogear
8
Give Domino an up-to-date Servlet Engine
13
Admin Client - Server Console
9
Notes Calendar - Show Calendars
12
I wish FilePath would consistently return a relative path whenever possible
26
Select Category option in Views to tick all documents within a category and sub-categories
11
Calendar overlay: documentation how to overlay application calendar
6
inbox: newest first
7
Lotus Script: record call history for for informative debugging
8
Feed Readers page for Domino
17
Get Rid of "Copy as Table" in instances where it doesn't work
16
Expose the SPR database to customers so others can easily get added to the request
10
Multi value core control







IdeaJam developed by




Hosting by