SearchDomino.com
May 7, 2001
Developer Tip
================================================= 
------------------------------------------------- 
Sponsored By:  IVES DEVELOPMENT
------------------------------------------------- 
Overcome the challenges of version control, team development,
configuration management, debugging, code maintenance and reuse,
quality assurance, migrating applications and more with the
TeamStudio Design System. Plus check out what's now available through
TeamStudio PartnerSource: Java and LotusScript code libraries and an
R4-to-R5 migration tool. Don't wait any longer to discover how you
can improve the quality of your applications. 
http://www.teamstudio.com 

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
Feature Tip
================================================= 
Title:  Open documents via URL link in emails
This tip was submitted by Declan Moore, a senior notes developer in
Dublin, Ireland.

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. 

CODE:

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( "[<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.

END CODE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
------------------------------------------------- 
Sponsored By:  LOTUS
------------------------------------------------- 
A Special note from our friends at Lotus: 
2001 DOMINO APPLICATION SERVER SOLUTION SHOWCASE
Have you created an innovative solution using Lotus technology? If
so, tell Lotus about it and you may receive a full conference pass to
Lotus DevCon, the Lotus event exclusively for developers on June
17-20 in Las Vegas, Nev. For more details, see
http://www.lotus.com/home.nsf/welcome/confpass
 
================================================= 
NEWLY POSTED DEVELOPER TIPS: DON'T FORGET TO VOTE!
================================================= 
We posted 9 new tips last week. Thanks for all your tips and keep
them coming!

Agent Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283834_alpD_idx0,00.html

[1] Change Agents from PRIVATE to SHARED and vice versa
[2] Prevent warning message when editing R5 Agents In R4 Designer

Domino Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283837_alpD_idx0,00.html

[1] Passing variables to agents

Formula Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283836_alpD_idx0,00.html

[1] Show hidden text in table

Other Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283842_alpD_idx0,00.html

[1] Copy/paste multiple view columns

Script Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283841_alpD_idx0,00.html

[1] Combine formula language and LotusScript
[2] Updating the .ini preferences line with LotusScript
[3] Setting authors/readers fields through script
[4] Popup Menus made easy in your applications

================================================= 
------------------------------------------------- 
Sponsored By:  Swing Software
------------------------------------------------- 
************* MS OFFICE INTEGRATION ************* 
Integrate your applications with Microsoft Office using new SWING
Integrator v2.0. Create, save, edit Office documents as attachments;
field exchange, mail-merge, labels, templates... Now there's no
easier way. No DLLs -- no end-user licenses -- unlimited distribution
(ROYALTY-FREE)! Learn what hundreds of developers and thousands of
end-users already know. 
http://www.swingsoftware.com/searchdomino.htm 

================================================= 
FEATURED BOOK:
================================================= 
Notes and Domino R5 Developer's Guide to Building Applications    
By Matt Riggsby

Notes and Domino provide the technology to solve pressing business
problems. But you have to provide the know-how, and this book gives
you just that--the hands-on knowledge you need to put the powerful
features of R5 to work in effective, fine-tuned solutions that
improve the way your organization shares information.

http://www.digitalguru.com/dgstore/product.asp?sku=0782128246&dept%5Fid=288&ac%5Fid=60&accountnumber=&couponnumber=


------------------------------------------------- 
MAY'S NEW TIP PRIZE!
------------------------------------------------- 
Win a Razor Extreme Scooter!  You don't have to be a kid to be the
coolest on your block.  The Razor Extreme Scooter includes the
following features:  *Exclusive linear front coil suspension *Blue
inline-style wheels *Collapsible, locking steering column *Wheelie
bar that acts as a footrest *A retail value of $130.00.  Submit a
Developer or Administrator tip in May and win ... you could be the
coolest in the neighborhood!

Our April winner and recipient of the R.A.D. Robot will be announced
soon! 

http://searchdomino.techtarget.com/tipsContest/0,289488,sid4_prz546242_cts546237,00.html


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
Disclaimer: These tips are submitted by your Domino peers. Our tips
services and online tips exchange are a way for you to learn from
other IT professionals and share technical advice and expertise with
your peers. Techtarget.com provides the infrastructure to facilitate
this sharing of information. However, we can't guarantee the accuracy
and validity of the material submitted. You agree that your use of
the searchDomino.com tips services and your reliance on any
questions, answers, information or other materials received through
searchDomino.com will be at your own risk.

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
NOTIFY US WITH FEEDBACK  
================================================= 
Send us your tips feedback! Cast your vote and send us your tips
comments.  If you have vital code information or other comments you'd
like to add to one of our online tips, send your comments to
[EMAIL PROTECTED], and we'll add your User Feedback to the
online tip!


To Remove your email address from the distribution list for this
specific newsletter "Reply" to this message with REMOVE in the
subject line. You will receive an email confirming that you have been
removed. To Remove yourself from additional distribution lists or to
update your preferences, go to the searchDomino.com registration page
at:
http://searchDomino.techtarget.com/register

Reply via email to