Translation

Ads

Granjuxx
Professional IT services. Special offers for small companies Websites.
Hostnet
Hosting starting at R$9,90. Free domains. 30 days free trial.


Place your ad here.

Public audience report XHTML valid

Home

Social

Removing Lotus Notes Workspace Icons PDF Print
User Rating: / 0
PoorBest 
Written by Bruno Grange   
Wednesday, 03 September 2008 02:26
I have written this code quite a few times before. My problem was that I never kept it. I wanted to send something out to my users that would allow them to remove particular icons and add another. When their database had been moved from one location to another, the following is what I would send them in a button.

@Command([WindowWorkspace]);
@Command( [AddDatabase] ; "X" : "directory\\database.nsf";"0" );
@Command( [FileDatabaseRemove]);
val1:=@Prompt([YESNO];"";"Would you like to add the new database?");
@If(val1=0;@Return("");"");
@Command( [AddDatabase] ; "X" : "directory\\database.nsf";"0" )

The simple English translation of it is...
1) Go to the workspace
2) Since the "FileDatabaseRemove" can only remove what's highlighted, we will use the "add database". It doesn't matter if you already have the icon or not. It will be added.
3) Now that we are highlighting a database, we can perform the remove function.
4) Next, we simply prompt the user if they want to add a new database. If they say no, then the formula exits.
5) If they said yes, the database will be added via the AddDatabase.
Related Articles:
 

Add comment


Security code
Refresh