Skip to main content
    Country/region select      Terms of use
     Home      Products      Services & solutions      Support & downloads      My account     

developerWorks  >  Lotus  >  Forums & community  >  Best Practice Makes Perfect

Best Practice Makes Perfect

A collaboration with Domino developers about how to do it and how to get it right in Domino

technological toysI'm in the process of reviewing more Designer help changes for version 8.0, and I'm finding out some useful new functions.

Note: you might be thinking, he's the project lead for Domino Designer and he's discovering things he didn't know about? How is that possible? Is he like Alberto Gonzales and doesn't know what's going on in his department? Actually, it's because the programming languages aren't considered part of Designer -- they're handled by a separate team, and I've been so busy with the the stuff I'm responsible for, that I haven't had much chance until now to see what they've been up to.

Here are a few of the more useful ones (note: all these in LotusScript are also available in Java):

  • GetAllReadDocuments and GetAllUnreadDocuments methods of NotesDatabase, MarkRead and MarkUnread methods of NotesDocument. No longer need to make C API calls to mark documents read, hooray! There are similar methods in other classes.
  • Clone, Intersect, Subtract, Contains and Merge methods of NotesDocumentCollection give more options for combining sets of documents to conduct relational-like searches in your code.
  • CopySelectedAsTable @Command, does what it sounds like.
  • NotesDatabase.GetProfileDocCollection, the Profilename argument is now optional, which lets you get all the profile documents in the database. Formerly, I believe you could do this with a NotesNoteCollection, but this way is a little easier.
  • NotesDXLExporter has a bunch of new options to control the output, including such things as converting all images to GIF (which is useful for other applications, unlike the Notes proprietary image format), asking for only specific fields (items), and leaving out pictures, file attachments and OLE objects (which can be a big performance boost if your application doesn't require them).
  • The new NotesDirectory and NotesDirectoryNavigator classes support rapid searches in the Domino Directory, for users and groups.

Andre Guirard | 23 April 2007 09:14:01 PM ET | Café Porch, Plymouth, MN, USA | Comments (10)

Search this blog 


    About IBM Privacy Contact