?
Solved

Add and remove workspace icon simultaneously in a button

Posted on 2003-10-23
2
Medium Priority
?
836 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 
LVL 15

Accepted Solution

by:
Bozzie4 earned 50 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 50 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

I thought it will be a good idea to make a post as it will help in case someone else faces these issues. I trust this gives an idea how each entry in Notes.ini can mean a lot for the Domino Server to be functioning properly. This article discusses t…
Article by: Rob
Notes 8.5 Archiving Steps and Tips This article covers setting up a Notes archive, and helps understand some of the menu choices making setting up and maintaining a Notes archive file easier.
NetCrunch network monitor is a highly extensive platform for network monitoring and alert generation. In this video you'll see a live demo of NetCrunch with most notable features explained in a walk-through manner. You'll also get to know the philos…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

765 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