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

no bugs allowedDialog to set status historyWe're big on debugging in my household -- if I'm not in my home office fixing Notes bugs, I'm often out in the yard killing pine sawflies or discouraging the beetles that prey on our asparagus and cucumbers.

I was using Print statements to debug some LotusScript code today, and wishing it kept a longer history. Well, guess what, I found out you can tell it to! If you right-click the status bar, there's a Status Bar Preferences selection on the context menu, and in the ensuing dialog you can set the status bar history to contain up to 100 lines (which requires a scroll-bar on my screen, but so what?).

Andre Guirard | 4 July 2007 11:45:00 PM ET | Plymouth, MN, USA | Comments (16)


1) Thanks!
Christian | 7/5/2007 12:38:21 AM

Great Andre, why did nobody tell me earlier about this?!

2) Agree!
Per Henrik Lausten | 7/5/2007 3:14:00 AM

What a very useful tip! Thanks.

3) Great tip
Richard Hogan | 7/5/2007 4:42:25 AM

Great tip - had the same thought myself lots of times. I wonder what other hidden goodies there are!

4) Cool
Brane | 7/5/2007 6:30:12 AM

Well thats great, those are the tips we really need!

5) it’s in the menus, too
Charles Robinson | 7/5/2007 7:47:57 AM

You can also get to the preferences in Notes 7 by using File > Preferences > Status bar preferences. I don't have a Notes 6 client handy to see if it's in there, too.

I can't help but wonder when this was introduced and why it's not listed in the Note or Designer help when you search for "status bar". I searched for "preferences" and dug through the 273 topic matches, and in an entry titled "Status bar: current state information" I found this:

3. (Optional) Change the width of a selection's status bar button by clicking the up or down arrows next to the Width preference.

Note The Status item, when selected, allows you to change the height as well as the width of the button. More height may be useful for the history list.

6) You can also send the status messages to the log.nsf
Julian Robichaux | 7/5/2007 7:52:48 AM

Starting with Notes 7, there's also a notes.ini parameter that allows you to send all the status bar messages to your local log.nsf file:


Description: Controls the default behavior for logging client status bar messages. For use by administrators and developers for debug purposes. Use the following values to set this variable:

0 - do not log status bar messages (default);

1 - log status bar messages to log.nsf. Messages will still be displayed on the status bar.

7) re: You can also send the status messages to the log.nsf
Andre Guirard | 7/5/2007 9:04:17 AM

Oh, I like that logging thing. I'll add it to my developer toolbar list.

8) save status messages
Ivan Riego | 7/5/2007 9:27:52 AM

That's really cool to save the messages.

I need to check if "LogStatusBar=1" does work for 6.5.4. That'd be really cool!!

9) It’s been there since September 2002!
Fabian Robok | 7/13/2007 4:03:17 AM

Yep, setting the number of lines for the status item has indeed been there from Notes 6 Gold on. And if I remember right, it was either mentioned by the speaker at some IBM Develelopers Day, or I just found it myself the very same week.

And of course, it's even more handy for @Formula development than for LS. Since the unsupported R5 formula debugger is gone (for good), we would have been left with @Prompt boxes. But luckily, we got @StatusBar together with this setting. Which - at least for me - is more usefull than the formula debugger has ever been.

10) What about Notes 8?
Pascal | 12/1/2008 1:21:00 PM

I can't seem to find / activate this in Notes 8...

11) Debugging tip -- status bar
Andre Guirard | 12/2/2008 9:10:02 AM

alas, the Java-based client doesn't have this function.

12) Setting this in a policy?
David Killingsworth | 1/5/2009 8:39:29 PM

It would be great if we could set this in a policy. It would make remote Notes client problem solving alot easier when we have to rely on the client to send us screenshots when they have problems.

13) @9 - WOOT!
Doug Finner | 5/19/2009 6:57:35 AM

OK, I am officially a happy guy right now. No more hitting 'ok...ok...ok...ok...ok' and writing down the prompt outputs to figure out what's going on! Thank you and Andre for the combo tip.

14) @8 -Woot
Doug Finner | 5/19/2009 7:09:48 AM

Darn...just noticed the 'R7' thing. I'm running 6.5.4 and it appears no joy on writing to the log file. OK, no longer offically a happy guy. Guess I can still increase the number of lines and then grab a screen shot; better than @Prompts.

15) Status Bar Preferences
djm810 | 5/19/2009 8:54:22 AM

When I try to modify my height value, this property (as well as status) are protected. What gives? I'm running on 6.5.

16) Status Bar Preferences
djm810 | 5/19/2009 8:57:03 AM

Duuuuh.... I clicked down to the status line and the height value was accessable.

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

Search this blog 


    About IBM Privacy Contact