Solved

Add and remove workspace icon simultaneously in a button

Posted on 2003-10-23
2
831 Views
Last Modified: 2013-12-18
how to create a button in a mail that adds a database icon and simultaneously removes some icons on the workspace?
0
Comment
Question by:thermoclines
2 Comments
 
LVL 15

Accepted Solution

by:
Bozzie4 earned 25 total points
ID: 9606116
To add a database icon, it's enough to send a database link.
When clicked, this will open the database too, that may not be the desired effect.

To add a database without opening, use

@Command( [AddDatabase] ; server : database ; bookmark )
bookmark is "1" or "0", if you want to open the bookmark dialog or not.

Use
@Command( [FileDatabaseRemove] )

to remove an icon (the current selected icon)

So an action to remove the database certlog.nsf on server Notes/Org, would be:
@Command( [WindowWorkspace] ) ;
@Command( [adddatabase]; "Notes/Org" : "certlog.nsf" );
@Command([FileDatabaseRemove])

Do adddatabase first, to be sure the icon is there or is selected, before removing it.

cheers,

Tom
0
 
LVL 31

Assisted Solution

by:qwaletee
qwaletee earned 25 total points
ID: 9611018
Just one caveat: When you use [FileDatabaseRemove], the user will get prompted to remove.

A techniqe I've sometimes used is to do a switch replica first to a non-replicating, empty replica of the atabase, that has a title "Delete me."  Then I can do the [FileDatabaseRemove].  Even if the user clicks NO, al he will have left is an icon that says Delete me!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

For users on the Lotus Notes 8 Standard client, this article provides information on checking the Java Heap size and adjusting it to half of your system RAM in attempt to get the Lotus Notes 8.x Standard client to run faster.  I've had to exercise t…
This is an old article, please see an updated version of this article, located here: http://www.experts-exchange.com/articles/23619/Notes-8-5x-Windows-7-Notes-info-and-tips.html
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question