OpenNTF.org - Open documents via URL link in
My Links (Not logged in)
Code Bin Search
 
Hosted by Prominic.NET
Rate This Code
5 - brilliant stuff
4 - very nice
3 - average
2 - needs work
1 - bad
   OpenNTF Code Bin
About This Code
Brief Description:
Open documents via URL link in emails 
Rating:
Not Rated Yet 
Contributor:
Andrew Jones 
Category:
Lotus Formula 
Type:
 
Last Modified:
17 Jun 2002 
OpenNTF Disclaimer

All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.

Code / Description
Usage / Example

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( @IsMember( "[TechnicalRole]"; @UserRoles ) | @UserRoles =
"[TechnicalRole]";

@Do( " " );

@Do( " " ) )

- 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.
 Comments

No documents found

 Add your comment!