Show-n-tell thursday
PermaLink Creating an empty NotesDocumentCollection - Update2008-06-28 13:43
Show-n-tell thursday
Back in 2006, I posted about how to create an empty NotesDocumentCollection, and my take on it. I had some comments on it, from Nick Wall among other people. Nick did some benchmarking on my approach, compared to other approaches, and came up with some favorable statistics.

Today, Tim Tripcony resurrected the discussion, with a benchmark of his own, which still shows that my approach is valid. Still, it would be nice to see a benchmark of a large database, that also has lots of profile documents. If anyone has such a database, and is up to it, please report your findings.


(0)

PermaLink Notes 8 Image Security2007-09-03 19:30
Show-n-tell thursday
A new feature of Notes 8 is the Image Security, which is noticed wherever a document displays images from the web. A document that contains passthrough HTML IMG tags is prohibited from displaying the image to protect the user from malicious web sites. Most notably, this is used to protect the user from spam.

How does this affect us? The new image security is a good thing, isn't it? Of course it is! The Notes community has requested this functionality for years, and we have finally got it. The problem is that it effects every document and database application used with the Notes 8 client. Lotus has made it quite easy to get around this though, It would have been nice if they had also documented it.



(4)

PermaLink Creating an empty NotesDocumentCollection2006-10-25 10:40
Show-n-tell thursday
Since Thomas Adrian posted about this in swedish, I thought I'd post about it in english. Thanks for the tip, Thomas!

Thomas, like most of us, has used his own approach to creating an empty NotesDocumentCollection, since there is no New constructor for this class. I thought that my approach to it was better, since he used NotesDatabase.FTSearch, which could potentially take a lot of time. Instead, I use the NotesDatabase.GetProfileDocCollection.

Sub Initialize Dim ns As New NotesSession Dim db As NotesDatabase Dim dc As NotesDocumentCollection Set db = ns.CurrentDatabase Set dc = db.GetProfileDocCollection("Foo") End Sub
This LotusScript was converted to HTML using the ls2html routine, provided by Julian Robichaux at nsftools.com.

This will give you an empty NotesDocumentCollection, as quickly as possible. Using NotesDatabase.GetProfileDocCollection has the advantage of searching through only the profile documents of the database (of course), and since profile documents are cached, this should be the fastest, and simplest, way to create an empty collection. Make sure to use a profile name (where I have used "Foo") that doesn't exist in your database, and you will be certain that the collection is empty.

Update: Follow-up


(7)

PermaLink Passing values to a web agent2006-07-16 00:20
Show-n-tell thursday
Well, things are slowing down a bit on the personal front (thanks for the supporting comments about that), and I have just started my 4 week vacation. What better way to start the vacation than to add something to my blog? Despite the fact that it isn't thursday, I thought I'd finally get to write a new Show-n-tell thursday entry.

Technorati tag:

The subject for the day (well, actually it's the middle of the night here... ) is web agents, and how to pass parameters to a web agent. This is something I've used on occasion, and it can be very useful to know about. This is probably old news to many of you, but judging from some of the questions posted on the Notes.Net LDD forums, there are still some people that could use this information.

If you have visited my home page before, you might recognize the subject and the code since I've posted about it there. Well, I've decided to move the Banana Home web site completely over to my blog instead, and this is the first step.




PermaLink Browsing the web with LotusScript2006-02-16
Show-n-tell thursday
Rocky and Bruce came up with a cool idea, and I thought I'd take part in it.

Technorati tag:

Lately, I have made several agents that read web pages and analyze the contents, and I know that I'm not the only one doing this. However, most people seem to use either Java or the MS COM object WinHttp.WinHttpRequest.5.1. I don't. I haven't yet learned how to use Java, and I found limitations in using the MS COM object. Instead, I use the built-in functionality of the Notes/Domino Web Navigator with LotusScript.

This is how I use this functionality, and hopefully, it can help someone else out there.



Banana Home
klaseliten.gif

About me
Please ignore this link: webadresser
Banana Applications
Me on Notes.Net
Other stuff
By Category
Monthly Archive
Contact Me
BlogRoll
Technorati tags
Lotus Domino ND8 RSS News Feed Blog Admin Lotus Geek OpenNTF BlogSphere