Manage Learn to apply best practices and optimize your operations.

Create a Send and Receive Icon on the Bookmark Bar

If you are using a local mail database with the Notes client, it is not very convenient to go to the replicator page each time you want to send and receive mail. So I have created a form with the property "store form in document" enabled and I populated the postopen of that form with the script you will find below.

Then I create a document with that form and I send it to the user'mail; when the user opens this document from his mail box an icon is created on his bookmark that is the send and receive button.

You can see that this code can be adjusted to do other thing like to create a bookmark for changing Internet password from the Notes client.

'You should first create a form with the property "Store Form in document enabled
'Then populate the postOpen event of this form with the following code
'Then create a document with that form and mail it to the user.

Sub Postopen(Source As Notesuidocument)
Dim session As New notessession
Dim bookmark As notesdatabase
Dim outline As notesoutline
Dim entry As notesoutlineentry
Dim LastEntry As notesoutlineentry

'First we should open the bookmark database
Set bookmark=session.Getdatabase("","bookmark.nsf")

'Get the handle of the UserBookmarkOrder outline
Set outline = bookmark.GetOutline( "UserBookmarkOrder")

'Get the handle of the last entry in the the outline
'you can choose any place in the bookmark bar to place your entry
'For example we can place our entry on the top of the bookmark or anywhere in the middle
Set LastEntry=outline.Getlast()

'Create the entry in the bookmark bar
Set entry = outline.Createentry("Send And Receive Mail",LastEntry,True)

'Set the command that will be activated once the entry is clicked
Call entry.Setaction("@Command([Replicator]);@Command([ReplicatorSendReceiveMail]);@Command([FileCloseWindow])")

'Set the icon of the entry in the bookmark
entry.Imagestext="Link - Very Important"

End Sub

Dig Deeper on LotusScript

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 ...