Open documents via URL link in emails

Open documents via URL link in emails

Here's how to develop your Domino Intranet site to allow users to open documents (via URL link in e-mails) in a Frameset whose navigator links are specifically dependent on the current user's Notes database Role; i.e. Technical (MIS) people opening this document via their e-mail will need access to areas of the site via Browser that their non-technical colleagues (Sales etc.) will need access to.

Thus, the navigator frame of the site's frameset will vary depending on the database Role of the currently attached user.
Here's what to do (steps indicated by the '-' symbol):

-Configure the database to force authentication, so it can determine 
associated rights and Roles for each specific user.
- Create two (or more) forms with appropriate navigator links, each dependent
 on the role of the authentic user; i.e. Techie_TOPNav_Form (for MIS personnel)
 and say NonTechie_TOPNavForm (for Sales personnel)
- Create another form called WebLaunch_Form. This form will contain both a)
 QUERY_STRING and b) $$HTMLHEAD field

a) The content of the computed for display QUERY_STRING field is as follows:

REM "This is a CGI variable field automatically populated by the 
browser with a value from its URL address";
QUERY_STRING

b) The content of the computed for display $$HTMLHEAD field is as
 follows:

REM "http://<IP Address>/<directory>/dBase.nsf - represent
the IP Address/DNS name of the Domino server and the directory path to
the database.";
@If(

    Requires Free Membership to View

    Register today to access targeted resources from our editorial writers and independent industry experts focused on Lotus Domino, Notes, Workplace and other related technologies.

    By submitting your registration information to SearchDomino.com you agree to receive email communications from TechTarget and TechTarget partners. We encourage you to read our Privacy Policy which contains important disclosures about how we collect and use your registration and other information. If you reside outside of the United States, by submitting this registration information you consent to having your personal data transferred to and processed in the United States. Your use of SearchDomino.com is governed by our Terms of Use. You may contact us at webmaster@TechTarget.com.

@IsMember( "[TechnicalRole]"; @UserRoles ) | @UserRoles = "[TechnicalRole]"; @Do( "[<FRAMESET FRAMEBORDER=0 BORDER=0 BORDERCOLOR='FFEFCE' ROWS='105,592'> <FRAME FRAMEBORDER=0 SCROLLING=no NAME='NavFrame' SRC='http://<IP Address>/<directory>/dBase.nsf/Techie_TOPNav_Form?OpenForm&Ba seTarget=MainFrame'> <FRAME FRAMEBORDER=0 NAME='MainFrame' SRC='/prodmkt/pmrt.nsf/View/" + @Right( Query_String; "&" ) + "?OpenDocument'> </FRAMESET>]" ); @Do( "[<FRAMESET FRAMEBORDER=0 BORDER=0 BORDERCOLOR='FFEFCE' ROWS='105,592'> <FRAME FRAMEBORDER=0 SCROLLING=no NAME='NavFrame' SRC='http://<IP Address>/<directory>/dBase.nsf/NonTechie_TOPNav_Form?OpenForm &BaseTarget=MainFrame'> <FRAME FRAMEBORDER=0 NAME='MainFrame' SRC='/prodmkt/pmrt.nsf/View/" + @Right( Query_String; "&" ) + "?OpenDocument'> </FRAMESET>]" ) ) - Create a document using this WebLaunch_Form form. - Label this document with an additional field such that it is the first document list in a specific view - Configure the properties of the database, such that the 'Opened in a browser' option is selected as: 'Launch first document in view' and reference the view in which the
WebLaunch_Form document resides, as in the previous step above
- Any e-mails then dispatch to personnel, should contain the URL to various documents with the following URL structure: http://<IP Address>/<directory>/dBase.nsf?opendatabase&<DocumentID> NB: <DocumentID> is the Universal Document ID of the referenced document to be accessed When the user clicks the URL on the e-mail, the frameset as referenced in the WebLaunch_Form document via the database properties is opened in the user's browser. This WebLaunch_Form document obtains reference to the e-mail's referenced document in the e-mail via the Query_String (parsed from the URL address) and is then opened in the 'MainFrame' frame part of the frameset.

This was first published in April 2001

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.