Alan Lepofsky made a recent post titled
easy to use Notes database links. The contents of the post have to create probably the most ironic thing I've seen in a while, when they go on to show the smarticon code required:
---- Install Instructions -----
1. Detach this file to your computer link.gif
, it will be used as the icon in your toolbar.
2. From the Notes menu choose: File - Preferences - Toolbar Preferences...
3. Customize - New - Button...
4. Button Captioned Text: Create DB Link
5. Popup Help Text: Create link information to the current database
6. Formula, copy and paste the exact text below:
ServerName := @Name([Abbreviate];@Subset(@DbName;1));
DNSName := @DbLookup("":"";"":"names.nsf";"Connections";Servername;"OptionalNetworkAddress";[FailSilent]);
URLNotesName := @LowerCase("notes://"+ @Name([CN];@Subset(@DbName;1)) + "/" + @WebDbName);
URLDNSName := @LowerCase("notes://"+ DNSName + "/" + @WebDbName);
Link := @DbTitle + " on " + URLNotesName;
@If(DNSName!="";Link := Link + " [ " + URLDNSName + " ]";"");
@Prompt([OkCancelEdit];"Database URL";"URL of current Database is";Link ;"")
UPDATE - Reader Brian Green has submitted some more advanced code in the comments section.
5. Click Change Icon - New. Select the link.gif fike you detached in step #1, press OK
6. Press OK to close the Edit Toolbar screen.
7. Use the Left and Right buttons to move the new button to where you want it on your Toolbar, click Save Toolbar, click ok.
Sure, this code is easy for me to read - but as a Developer it should be. How is a user going to deal with this sort of thing? They aren't. This is the reasons why Notes/Domino Developers will go on for hours about how great the product is, while their users moan at it's shortcomings.