IBM®
Skip to main content
    Country/region select      Terms of use
 
 
   
     Home      Products      Services & solutions      Support & downloads      My account     
 
developerWorks
AIX and UNIX
IBM Systems
Information Mgmt
Lotus
New to Lotus
Products
How to buy
Downloads
Live demos
Technical library
Training
Support
Forums & community
Events
Rational
Tivoli
WebSphere
Architecture
Autonomic computing
Java™ technology
Linux
Multicore acceleration
Open source
SOA and Web services
Web development
XML
About dW
Submit content
Feedback


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

Best Practice Makes Perfect

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

I always thought this property would tell the note collection to select all views (excluding desktop private and those to which the user has no access). Not so; it selects all views that are not hidden from the Notes client.

I have a fix for this which may or may not get into 8.5.2, but meanwhile I thought I should let people know, since it came as a surprise to me and I suspect many of you may have code that uses this property and don't realize that you're not locating all the view design elements in apps you're scanning.


The workaround is as follows:

ncoll.Selectallindexelements True
ncoll.Selectionformula =
|!@Matches($Flags; "*{FG^}*")|


The same bug exists in Java (by and large you can assume this as the APIs share a lot of code, except for the XML parsers).

Navigators are also affected; to find all navigators you should write:

ncoll.Selectallindexelements True
ncoll.Selectionformula =
|@Matches($Flags; "*G*")|

The other "select" properties seem to work OK.

BTW this is SPR AGUD7TGJDL.

Andre Guirard | 29 March 2010 12:59:38 PM ET | Home, Plymouth, MN, USA | Comments (1)

Lotus Software

Search this blog 

Disclaimer 

    About IBM Privacy Contact