Skip to main content
Information Mgmt
New to Lotus
How to buy
Live demos
Technical library
Forums & community
Java™ technology
Open source
SOA and Web services
Web development
My developerWorks
About dW
Submit content

developerWorks  >  Lotus  >  Forums & community  >  Notes/Domino 6 and 7 Forum

Notes/Domino 6 and 7 Forum



Sign in to participate PreviousPrevious NextNext

chris whisonant 9.Mar.06 11:04 AM a Web browser
Notes Client 7.0 All Platforms

OK, I am in the process of setting up mail archives. I want to send a button to users that will create a Bookmark Bar Icon directly to the DB (by the way, does anyone know how to do this without restarting Notes to make the icon display?).

After my test users try opening the Bookmark Bar Icon, they get the error "Server Error: File Does Not Exist". If I have them go through the Tools > Archive > Open from their Mail navigation frame, the database will open. Then I can have them click the Icon and it will now work. Magic? What's going on with this? Below is my code - you can see that the code traps for the database not being found and can only build the Bookmark if it finds the correct database! I swiped most of the code from another post on the forum. :) Thanks in advance!

Sub Click(Source As Button)
Dim outline As NotesOutline
Dim NewOE As NotesOutlineEntry
Dim s As New NotesSession
Dim db As NotesDatabase
Dim curdb As NotesDatabase
Dim archdb As NotesDatabase
Dim curdbname As String
Dim arcdbname As String
Dim archid As String

On Error Goto ErrHandle
Set db = New NotesDatabase( "", "bookmark.nsf" )
Set outline = db.GetOutline("UserBookmarkOrder")
Set curdb = s.CurrentDatabase
curdbname = Strright(curdb.FilePath,"\")
archdbname = "FASmail\a_" + curdbname
Set archdb = s.GetDatabase("TPDOMINO1/COMPORIUM", archdbname)
archid = archdb.ReplicaID

Set NewOE = outline.CreateEntry("Mail Archive")
Call NewOE.SetURL( "notes://tpdomino1/" + archid )

NewOE.ImagesText = "Link - Notes Database"

Msgbox "Bookmark Created Successfully - Please Restart Lotus Notes To View"
Goto ExitSub

Msgbox "An error occurred while adding the bookmark. Please call the Help Desk for support."
Resume ExitSub

End Sub

  Document options
Print this pagePrint this page

 Search this forum

  Forum views and search
Date (threaded)
Date (flat)
With excerpt
Advanced search

 Sign In or Register
Sign in
Forgot your password?
Forgot your user name?
Create new registration

 RSS feedsRSS
All forum posts RSS
All main topics RSS
More Lotus RSS feeds


Forum use and etiquette
Native Notes Access
Web site Feedback

Lotus Support

 Lotus Support
IBM Support Portal - Lotus software
Lotus Support documents
Lotus support by product
Lotus support downloads
Lotus support RSS feeds


IBM Composite Applications
IBM Mashup Center
IBM Connections
IBM Connections Cloud Developers
IBM Docs
IBM Forms
IBM Mobile Connect
IBM Sametime
IBM SmartCloud for Social Business
IBM Web Experience Factory
Lotus Domino
Lotus Domino Designer
Lotus Expeditor
Lotus Foundations
Lotus iNotes
Lotus Instructor Community Courseware
Lotus Notes
Lotus Notes & Domino Application Development
Lotus Notes Traveler
Lotus Protector
Lotus Quickr
Lotus Symphony
IBM Web Content Manager
WebSphere Portal

Lotus Forums

 Lotus Forums
Notes/Domino 9.0
Notes/Domino 8.5 + Traveler
Notes/Domino XPages development forum
Notes/Domino 8
Notes/Domino 6 and 7
IBM Connections
IBM Mobile Connect
IBM Sametime
IBM SmartCloud Notes
Lotus Enterprise Integration
Lotus Protector
Lotus Quickr
Lotus SmartSuite