Manage Learn to apply best practices and optimize your operations.

Removing the header detail from a memo

Removing the header detail from a memo
By Brian Mahoney, advisor

If you have ever distributed a production report from an agent, your clients may have asked that the mail header details be hidden so they don't clutter up the top of the report and don't print. An easy way to do this is to add a single field to the report memo. When the Notes client encounters the field $HideMailHeader with a value of "1", the mail header information is not displayed by the form.

Here is some sample code that uses the $HideMailHeader field. It also sets the view icon and principal fields so the user can distinguish generated reports in their inbox.

Sub CreateReportMemo (docReport As NotesDocument, strSubject As String, rti As NotesRichTextItem)
Dim item As NotesItem 
Print "Creating Report Memo"    'writes to server log 
Set item = docReport.ReplaceItemValue("SendTo", "Distribution Group") 
Set item = docReport.ReplaceItemValue("Subject", strSubject )     'Sets the subject to the value passed in. 
Set item = docReport.ReplaceItemValue("Principal", db.title  & " Daily 
Reports")      'Sets Principal name to title of db + Daily Reports 
Set item = docReport.ReplaceItemValue("_ViewIcon", 127)      'Set icon to 
Blue Envelope 
Set item = docReport.ReplaceItemValue("$HideMailHeader", "1")     'Prevent display of the mail header information when the memo is displayed 
Set rti = New NotesRichTextItem(docReport, "Body") 
Call rti.AppendText("Here is a place to add any report heading information") 
End Sub 

How to create a new line when typing in the formula window
By Jens Bruntt, advisor

As a developer, you sometimes run into this annoying situation: You press a Formula Window button, and you start writing your code. Then you press ENTER to create a new line, but Notes interprets this as an OK to close the Formula Window.

How to solve the problem? Try Pressing CTRL-ENTER instead of just ENTER.

Dig Deeper on Domino Resources - Part 7

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.




  • iSeries tutorials's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...