Are you kidding me!??!?!?!
In the Mail8.ntf, there's a library called DocExpProcessing. Inside, there's a function called CheckAppropriateExpiration(). In this function, there's the following code...
Set thisdb = s.currentdatabase
Set coll = thisdb.Createdocumentcollection
Are you f'ing kidding me!??!??! Over 100 votes for this on IdeaJam, and entire framework classes have been written to work around it. But instead of encountering this in Release Notes, or in Designer Help, there's a note at the bottom of the IJ thread from Scott O'Keefe (notice how quiet the thread gets after that? Because he mentions the solution over 3 months after the initial post.) and a post on the ND 8 LDD forum.
Infuriating.


Comments
However, until this is officially documented I'm not going to use it. We have no way of knowing how stable (or unstable) this method is.
I'll stick with my "old-school" hack:
Set col = ndb.GetProfileDocCollection("INVALID_KEY")
(with appropriate checks for collection.count > 0)
Posted by Devin Olson At 05:27:06 PM On 07/23/2008 |
Posted by Tim Tripcony At 10:28:24 PM On 07/23/2008 |
Did a simple test, and they seem to work: { Link }
(I discovered them in a LS'08 slide)
Posted by Tommy Valand At 03:59:45 AM On 07/24/2008 |
I wonder what the threshold is for getting stuff into the help. For example, SendKeys is in the Domino Designer help even though it doesn't work in Notes or Domino. It's an artifact from some other LotusScript implementation. However, things such as the new 8.x methods or R6's ModifiedSinceSaved or R5's @ExpandNameList, which are all either desperately needed or widely used, aren't mentioned at all.
Posted by Charles Robinson At 02:05:08 PM On 07/24/2008 |
Posted by Scott O'Keefe At 02:23:06 PM On 07/24/2008 |
Posted by Nathan T. Freeman At 04:25:22 PM On 07/24/2008 |
Am all for clearer rules here.
I consider the oficial documentation as a contract of Lotus with us using Lotus Domino in projects.
If its not in, I have doubt if possible corner cases will be fixed or if it will still be supported in future version.
Developers should be commited to write the most maintainable and eficient code they can. They are not happy using a hack like
Set col = ndb.GetProfileDocCollection("INVALID_KEY")
The same, when using methods or function to which Lotus hasn't commited itself by putting them in the oficial documentation.
Having a set of well respected rules isn't funny, but it adds credibility to the platform.
Posted by Axel At 01:32:22 AM On 07/25/2008 |
These kind of on the fly collections will be more important on xpages with repeat controls.
Posted by Andrew Pollack At 08:24:43 PM On 07/25/2008 |