I started playing around with lotusscript to try and establish just
what I can and cannot do and I've hit a few problems already and don't
know if things aren't working because what I'm trying can't be done,
or just because I'm not doing the right things.
For example, I wanted to hook up the PostOpen event on folders so that
when a user clicks on a folder it communicates with the external
database to determine whether it should have any child folders (and if
so, what they should be called), with the intention of creating them
if they didn't exist. I don't want any user interaction, so I can't
use the CreateFolder @Command, but if I use the EnableFolder method on
the NotesDatabase object the folders are created, but the folder view
on the left does not change to indicate that there are now child
folders (i.e. the little expand/collapse triangle doesn't appear
beside the folder that the the child folders were created under). I've
tried calling version refresh methods (ViewRefresh & ViewRebuild on
the NotesUIWorkspace object) but they don;t seem to make any
difference and the Refresh method on NotesView object seems to be for
the document sin the folder rather than the child folders.
Also, is there any (simple) way to determine the names of existing
child folders? The only mechanism that I have at the moment is to
iterate through the folders returned by the Views property on the
NotesDatabase object and compare the names - hardly an efficient
algorithm, and certainly not quick.
Regards,
SeekerOfTruths