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

I just added a Domino Designer wiki article about how to create a blank NotesDocumentCollection.

Sorry for the long delay between posts.  Besides finishing up on 8.5 (which I think I'm done with now!), and taking time off to visit New Mexico, I've been doing my writing recently to the wiki instead of to my blog.  I'm excited about the wiki, which contains enough high-value information that it's worth subscribing to the RSS feed. For the IBM-authored articles, they are internally reviewed before posting, so they tend to be pretty reliable.  All you folks: please write more articles (and correct or comment existing ones).

Also, if there are topics you'd like to see covered that you don't feel you know enough to write yourself, please post your list here.  I'd like to focus on topics that are of value to developers, and if someone suggests something I'm not the right person to write, I'll try to find the right person.

Andre Guirard | 26 November 2008 09:50:38 AM ET | Man-Cave, Plymouth, MN, USA | Comments (11)


1) design patterns vs Notes | 11/29/2008 11:19:32 AM

I'd be very interested in hearing your take on design patterns as applied to Lotus Notes/Domino. For example: MVC is still something I'm not quite sure if/how it applies... or maybe it's more accurate to say I'm not sure where the line is between useful and overcomplicated.

2) Search here for "mvc"...
Andre Guirard | 11/30/2008 8:01:44 PM

... we've had a discussion on that topic

3) Just in Time requires a reliable system :-)
John Smart | 12/1/2008 10:49:53 AM

OOF! A well-deserved RTFM. Sorry, Andre!

I thought I'd read your entire blog and didn't recall this. I need to either get better search habits or get a better memory.

I think I'll shoot for better search habits.

4) @For vs Web
Rish | 12/16/2008 9:35:13 PM

Hey Andre,

Recently I encountered strange thing or may be I don't have sufficient information on @For loop. I was trying something like,




It always return 1 rather than writing proper value. When I checked in Notes Help , found return 1 means statement is executed successfully , but why no print . Am I missing something tricky about @For ?

5) @For vs Web
Kerr | 12/17/2008 6:11:25 AM

@Rish, Just evaluating the string in the last part of your loop doesn't do anything with it. You need to store the values and then spit them out.

Of the top of my head, something like this should work.








6) @For vs Web
Rish | 12/21/2008 10:44:22 PM

@Kerr, Thanks, was the same issue..

7) @For vs Web
Kerr | 12/22/2008 7:05:21 AM


It's funny how you can get focused on answering a specific question and not look at the bigger picture.

A couple of things. One, there was some junk in the loop example that I just blindly copied some nonsense form yours as all I was trying to do was put in the part that adds values to the list.

Something like this is probably what you were after:






Point two.

My for loop example explains how to get the values out of a for loop, but there is a much easier way to get the output you are looking for. You can just use native string concatenation with lists and miss out the for loop all together. i.e.

@implode("<li>"+Projects+"</li>"; @newline)



8) @For vs Web
Kerr | 12/22/2008 7:09:58 AM

OK, it looks like the post is getting all fouled up. There is supposed to be an i in square brackets in the third line of teh for loop code, after Projects. It's getting converted in to an opening italics tag. Pah!!

9) @For vs Web
Rishi | 12/23/2008 2:25:38 AM


I can't do string concatenation because mentioned code was part of dynamic menu generation.Moreover I am using passthru html so don't need square bracket :-)

10) @For vs Web
Kerr | 12/23/2008 6:05:28 AM

@Rish, The square brackets are not for passthrough, they are for indexing into the list Projects.

11) Topic Request
David Leedy | 2/13/2009 8:20:20 AM

Here's a topic Request:


I've been attempting to use this and saw a lot of posts with confusion over this. I'm probably confused about it as well.


 Add a Comment
Comment:  (No HTML - Links will be converted if prefixed http://)
Remember Me?     Cancel

Search this blog 


    About IBM Privacy Contact