Tip

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"

Call outline.save()
End Sub

This was first published in March 2001

There are Comments. Add yours.

 
TIP: Want to include a code block in your comment? Use <pre> or <code> tags around the desired text. Ex: <code>insert code</code>

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
Sort by: OldestNewest

Forgot Password?

No problem! Submit your e-mail address below. We'll send you an email containing your password.

Your password has been sent to:

Disclaimer: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.