SearchDomino.com
May 14, 2001
Developer Tip
================================================= 
------------------------------------------------- 
Sponsored By: Lotus Development Corp.
------------------------------------------------- 
2001 DOMINO APPLICATION SERVER SOLUTION SHOWCASE 
Win a full conference pass to Lotus DevCon.  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

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
Congratulations to our April winner of the R.A.D Robot, William Lally
in Downers Grove, Ill. For his tip "Run Server Utilities on the
client"
http://www.searchDomino.com/tip/1,289483,sid4_gci540842,00.html

And congratulations to our first runner up, Steven Gatehouse for his
tip "Informing the users of their mail size and quotas via standard
MailFS"
http://www.searchDomino.com/tip/1,289483,sid4_gci546645,00.html

================================================= 
Feature Tip
================================================= 
Title: Field validation for the Web
http://searchdomino.techtarget.com/tip/1,289483,sid4_gci546660,00.html

This tip was submitted by Kamal Abdul-Hakim in Glendale, Arizona.

This code allows a developer the easiest route to field validation. I
have tried all the validation methods such as JavaScript, Validation
fields etc.

I developed this after a many hours of trying to find the easiest,
most portable way to validate fields. Nothing works as well as this
one!

To use this formula, add a field to your form called FE. Make it
"Computed for Display" with the value as FE. This will be a display
field for your validation error message. Make it the color red,
green, or something that stands out when the form returns validation
errors.

Add the code into your submit button right before the code you use to
process the form (save it, run agent or whatever).

CODE:

FIELD FE := FE;
F1 := FIELD1NAME;
F2 := FIELD2NAME;
F3 := FIELD3NAME;
F4 := FIELD4NAME;
F5 := FIELD5NAME;
ErrorMessage:= "There was an error in your form: "; 
REM "ADD THIS CODE TO YOUR SUBMIT OR SAVE BUTTON RIGHT BEFORE THE
REST OF YOUR CODE. ";
REM "IF YOU HAVE ANY FIELD DECLARATIONS IN YOUR CURRENT CODE, ADD
THEM TO THEM UP AT TOP.";
REM "FIELD DECLARATIONS SHOULD ALWAYS BE AT THE TOP."; 
REM " REFRESH FIELDS";
@Command([ViewRefreshFields]); 
REM "THIS FORMULA VALIDATES FIELDS THEN PROCESSES FORM ONCE THE
FIELDS ARE CORRECT.";
REM ;
REM "CHECK IF FIELD 1 IS VALID";
a:=@If( F1="" ;@NewLine+ "Update Field One."; "" ); 
REM "CHECK IF FIELD 2 IS VALID";
b:=@If( F2="" ;@NewLine+ "Update Field Two."; "" ); 
REM "CHECK IF FIELD 3 IS VALID";
c:=@If( F3="" ;@NewLine+ "Update Field Three."; "" ); 
REM "CHECK IF FIELD 4 IS VALID";
d:=@If( F4="" ;@NewLine+ "Update Field Four."; "" ); 
REM "CHECK IF FIELD 5 IS VALID";
e:=@If( F5="" ;@NewLine+ "Update Field Five."; "" ); 
ems := @Trim(a+b+c+d+e); 
@If( ems = "" ; @Success ; @Do(@SetField("FE";ErrorMessage+ems);
@Return(""))); 
REM "SAVE DOCUMENT OR RUN THE REST OF THE SUBMIT FORMULA HERE";
REM "ADD THE REST OF YOUR CODE HERE";
@PostedCommand([FileSave]); 
REM "AFTER PROCESSING THE DOCUMENT SEND THEM TO A CONFIRMATION PAGE.
";
@PostedCommand([Compose];"ConfirmPage")

END CODE

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
------------------------------------------------- 
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!

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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  
================================================= 
NEWLY POSTED DEVELOPER TIPS: 
================================================= 
We posted 11 new Developer 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] Formatting a Notes view in HTML table for WEB

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

[1] Securing your agents
[2] Pass default mail delivery options from address book entries to
memo (R5)
[3] Document tracking number based on date
[4] Enable/disable preview pane by default

JavaScript Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283839_alpD_idx0,00.html

[1] Refreshing embedded view from a child window

JavaScript Category
http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283840_alpD_idx0,00.html

[1] Display the SaveAs dialog in IE before launching an embedded
attachment
[2] Create an ok/cancel confirmation notice messagebox

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

[1] R5 Client Access Only 
[2] Action button - switch to any view
[3] Delete personnel on first use view

================================================= 
FEATURED BOOK:
================================================= 
CLP Fast Track: Lotus Notes/Domino 5 Application Development   
By: Tim Bankes, Dave Hatter and Dennis Maione

If you are a Lotus professional looking to update your CLP 4 status
or starting down the road to the CLP 5 certification, the Fast Track
title offers you all the information you need to pass the 3 exams
that make up the Application Development certification. As you know,
with the release of R5, Lotus updated their certification strategy to
include task-specific testing levels, while maintaining the division
between System Administration and Application Development within
their testing arena. There are now three exams that candidates must
take to be certified in the application development arena. Created
for the experienced exam candidate, someone with a prior version
certification or that has worked with Notes/Domino for a while, the
Fast Track hones in on what you need to know to pass the exam
specifically, without overwhelming you with unnecessary detail. CLP
Fast Tracks are the accelerated path to CLP certification success.

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


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
------------------------------------------------- 
Platform survey
------------------------------------------------- 
Don't miss out on this opportunity to be part of an extensive survey
being conducted by searchDominio and a handful of other
techtarget.com sites. Here's your chance to weigh in on what platform
or platforms your company uses to run mission-critical applications.
The survey should take you no more than 10 minutes to complete, and
for your participation you will receive comprehensive study results
prior to their release to the general public. These results will be
available to you FOR FREE.  

http://www.insightexpress.com/ix/showSurvey.asp?id=26642&accessCode=5477574934&noemail=true


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
================================================= 
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!


If you no longer wish to receive this newsletter simply reply to 
this message with "REMOVE" in the subject line.  Or, visit 
http://searchDomino.techtarget.com/register and adjust your 
subscriptions accordingly. 

If you choose to unsubscribe using our automated processing, you 
must send the "REMOVE" request from the email account to which 
this newsletter was delivered.  Please allow 24 hours for your 
"REMOVE" request to be processed.

Reply via email to