Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Add Dbase Icon to Workspace with Script 1

Status
Not open for further replies.

ACH381

Technical User
Apr 3, 2002
49
US
How can we add a Database Bookmark Icon to a user's workspace with a Lotus Script in Lotus Notes 6.5?

Our company is adding a new Notes database to our server and we need a way to bookmark the database on the Notes Workspace on all of our computers (about 2500) with a script that can be called when Notes opens, or from an email attachment, etc. In the past we have had everyone do it manually from a page of step by step instructions. It's been a real pain to handle all the calls from the less than literate employees.
 
You can easily do it in a button in an email message using formula language. Here's a sample:
>>>>>>>
REM "Replace the following servername with the name of your Domino server where the database has been installed on";
ServerName:= "Server1/Acme";

REM "Replace the following filename with the pathfilename appropriate to where the database is located on your server";
NewDb:="newdb.nsf";

@If(
@DbExists(ServerName : NewDb);
@Command([AddDatabase]; ServerName : NewDb);
@Return(@Prompt([OK]; "New Database"; "The new database could not be found."))
);
@If(
@Prompt([YESNO]; "New Database"; "The new database has been successfully added to your workspace. Would you like to open it now?");
@Command([FileOpenDatabase];ServerName : NewDb);
""
)


If you've installed the database on multiple Domino servers, you can use the above Lotus Notes formula code for the button in your email message, with the following change. Change the line that reads:
ServerName:=”Server1/Acme”;
to: ServerName:=@Subset(@DbName;1);
The server name then automatically defaults to the server the message is being read from.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top