Home > Domino Tips > Administrator > Smart Icons > Super Smarticon
Domino Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

SMART ICONS

Super Smarticon


Chris Webb
02.09.2000
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


this code, in a smarticon, is an invaluable tool for administrators.

Note: To use the Switch ID function, you must have a place where you keep
backup copies of created ID's.

You also need to create a new database and place the agents listed below into
it, I use 2 custom navigators to make the screen look more professional when
"Check Groups" and "Switch ID" are used, they are not needed.

Code

Smarticon Code.
--------------------------------------------------------------------------------
-----------
Person := "";
ID := "";
Name := "";
sA := "";
Access := "";
Roles := "";
Data := "";
Line = "";
Server :="Your Server";
Database := "Your Database";

list := "Check Groups":"Anon E-Mail":"Switch ID":"Open Another Mailfile":"My
Access";
member := @Prompt([OKCANCELLIST]:[NoSort]; "Admin Choice"; "Select an Option";
""; list);

@If(member = "Check Groups";@Do(
@SetEnvironment("GroupName";@PickList([Name]:[Single]));
@Command([FileOpenDatabase]; Server:Database ; "Custom Display Navigator, just
for show";"1" );
@Command( [ToolsRunMacro];"ShowGroups");
@Command([FileCloseWindow]));
@If(member = "Anon E-Mail";@Do(
@Command([FileOpenDatabase]; Server:Database ; "Untitled" );
@Command( [ToolsRunMacro];"Anon Mail");
@Command([FileCloseWindow]));
@If(member = "Open Another Mailfile"; @Do(
@Command([FileOpenDatabase]; Server:Database ; "Untitled" );
@Command( [ToolsRunMacro];"OpenMail");
@Command([FileCloseWindow]));
@If(member = "My Access";@Do(
@Set("sA";@Subset(@UserAccess( @DbName );1));
@Set("Access";
@If(sA="1";"Depositor";sA="2";"Reader";sA="3";"Author";sA="4";"Editor";sA="5";"D
esigner";sA="6";"Manager";""));
@Set("Data";@DbTitle);
@Set("Roles"; @If(@UserRoles="";"None Set";@UserRoles));
@Prompt([OK];"Database Name = "+@DbTitle+ " : Server =
"+@DbName;"Your Name =" + @Name([CN] ; @UserName) +
@Char(13)+@Char(10)+@Char(13)+@Char(10)+"Your Access Level =
"+Access+@Char(13)+@Char(10)+@Char(13)+@Char(10)+"Roles set for you =
"+Roles+"." ));
@If(member = "Switch ID";@Do(
@Set("Person";@PickList( [Name]:[Single]) );
@Set("ID";@Name([OU2];Person));
@SetEnvironment("Name1";ID);
@Set("Name";@Name([CN];Person));
@SetEnvironment("Name2";Name);
@Command([FileOpenDatabase]; Server:Database ; "Custom Display
Navigator, just for show";"1" );
@Command( [ToolsRunMacro] ; "IDSwitch" );
@Command([FileCloseWindow]));NULL)))))


the macros are as follows

--------------------------------------------------------------------------------
------------------------------------------
"ShowGroups" (Agent in Your Database on Your Server)

replace 00000000:00000000 with the Replica ID of your Main Address book


REM "Groups can be nested up to a maximum of 6 levels";
UserName := @Environment("GroupName") ;
ColumnList
:=@ReplaceSubstring(@DbColumn("":"";"00000000:00000000";"($ServerAccess)";1);"
";"+");
temp :=@DbLookup("":"";"00000000:00000000";"($ServerAccess)";UserName;2);
MemberList1 := @If(!@IsError(temp);temp;"");
LU
:=@ReplaceSubstring(@Explode(@Implode(@Keywords(ColumnList;@ReplaceSubstring(Mem
berList1;" ";"+"));"|");"|";0);"+";" ");
@Set("temp";@DbLookup("":"";"00000000:00000000";"($ServerAccess)";LU;2));
MemberList2 := @If(!@IsError(temp) & LU !="";temp;UserName);
@Set("LU";@ReplaceSubstring(@Explode(@Implode(@Keywords(ColumnList;@ReplaceSubst
ring(MemberList2;" ";"+"));"|");"|";0);"+";" "));
@Set("temp";@DbLookup("":"";"00000000:00000000";"($ServerAccess)";LU;2));
MemberList3 := @If(!@IsError(temp) & LU !="";temp;UserName);
@Set("LU";@ReplaceSubstring(@Explode(@Implode(@Keywords(ColumnList;@ReplaceSubst
ring(MemberList3;" ";"+"));"|");"|";0);"+";" "));
@Set("temp";@DbLookup("":"";"00000000:00000000";"($ServerAccess)";LU;2));
MemberList4 := @If(!@IsError(temp) & LU !="";temp;UserName);
@Set("LU";@ReplaceSubstring(@Explode(@Implode(@Keywords(ColumnList;@ReplaceSubst
ring(MemberList4;" ";"+"));"|");"|";0);"+";" "));
@Set("temp";@DbLookup("":"";"00000000:00000000";"($ServerAccess)";LU;2));
MemberList5 := @If(!@IsError(temp) & LU !="";temp;UserName);
@Set("LU";@ReplaceSubstring(@Explode(@Implode(@Keywords(ColumnList;@ReplaceSubst
ring(MemberList5;" ";"+"));"|");"|";0);"+";" "));
@Set("temp";@DbLookup("":"";"00000000:00000000";"($ServerAccess)";LU;2));<

Rate this Tip
To rate tips, you must be a member of SearchDomino.com.
Register now to start rating these tips. Log in if you are already a member.




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Smart Icons
Smart icon to set field value/type, version 2
Easy way to count members of a group
SmartIcon code to display any open database's ReplicaID
SmartIcon shortcut to server
Special action ... SmartIcon @Formula for day-to-day tasks
Quick admin function in Notes client
Get the size of a user's mail database while in the Domino Directory
Quick import-export smart icons
Set field value/type via smart icon
SmartIcon to open a mailfile from NAB

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



Domino & Lotus Notes Security Solutions: Authentication, Antispam, Encryption and Antivirus
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts