SearchDomino.com June 14, 2001 Developer Tip ================================================= ------------------------------------------------- Sponsored By: Cybernet Software Systems ------------------------------------------------- Beacon Award winning IntelliPRINTPLUS overcomes the PRINTING AND REPORTING limitations in Notes. It is the only product designed exclusively for Notes and Domino. It's easy enough for End Users, yet powerful enough for the Notes Developer. Extend the value of your current Notes applications as well as develop new print and report-enabled applications that were never before possible in Notes. Get a free evaluation copy of the latest version at ... http://www.cybernetsoft.com/ See us at Pedestal 28 at Lotus DevCon 2001 in Las Vegas, NV ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Developers: In addition to the extra Developer Tip this week, you can gain immediate access to more great developer-specific info in our Lotus411 Developer Forums. It's your best place to collaborate online with your peers (and our guest Forums experts!) on particular areas of interest or development challenges. Join in and post your questions today - who better to help you out than your peers who have already faced what you're up against! Or become a Notes and Domino hero as you respond to posts with your own solutions, code samples, insight, and helpful hints. It's your community...so join in today! ================================================= Feature Tip ================================================= Title: The ComputeWithForm Method This tip was submitted by Tim Neyman a manager of planning, information and analysis in New Orleans, La. The ComputeWithForm Method has been around for a quite a while and can be very useful. However, I've often had the need to compute just a field or two on a very complex form, and this can cause problems in workflow if the entire form isn't filled out yet and validation somewhere else on the form might fail. A simple solution is to create a VERY basic form with just the fields that you want to re-compute. Switch forms in your code, call the ComputeWithForm method and switch the form back. This method returns a flag, which you can then check to see if the compute was successful. If computeSuccess is = True, then there are no errors on the document and the fields passed validation. If not, you could go into some type of error handling routine. Keep in mind this will not work if there is a form stored in the document. For this method Notes determines the form for the document by: 1. The stored form, if any 2. The contents of the Form item. 3. The database default form, if there is not a Form item. Check the Help document for this method for explanations on the method parameters. CODE: Get a handle ndoc on your document ndoc.form = 'ComputeFormName' Call ndoc.save(True, False) computeSuccess = ndoc.ComputeWithForm(False, False) ndoc.form = 'OriginalFormName' Call ndoc.save(True, False) END CODE ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ================================================= NEWLY POSTED DEVELOPER TIPS: ================================================= We posted 7 new tips this 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] Striping files from email Domino Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283837_alpD_idx0,00.html [1] Submit an Anonymous form after authentication on the Web Formula Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283836_alpD_idx0,00.html [1] Filling in multiple fields without using a computed field [2] 'Doclink' to local files HTML Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283838_alpD_idx0,00.html [1] Scrollable embedded view JavaScript Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283840_alpD_idx0,00.html [1] Open a new frameset from a View Doc Link Script Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283841_alpD_idx0,00.html [1] LotusScript 101 - Custom Functions ================================================= FEATURED BOOK: ================================================= Programming Workflow Applications with Domino By Daniel Giblin and Richard Lam Harness the power of groupware to reshape business processes and customer interactions. This book will permit you to implement Web-based workflow applications using the industry-standard groupware environment, Domino R5. http://www.digitalguru.com/dgstore/product.asp?sku=1929629060&dept%5Fid=288&ac%5Fid=60&accountnumber=&couponnumber ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------- JUNE'S TIP PRIZE! ------------------------------------------------- Will you be sporting the Secret Agent Man Digital Watch? This watch isn't just a watch, it's a high-tech digital device that has everything you'd ever want in a watch and more. Some of the innovative features include: *Storage of up to 100 internet/email addresses, phone numbers or other memos *3 alarms *Self-adjusting calendar *Water resistance up to 100 meters *Optional vertical or horizontal display *Random message feature with 45 preprogrammed greetings *A retail value of $200. Submit a Developer tip in June, and let's see if you can be the latest Secret Agent Man. 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! ================================================= If you would like to sponsor this or any TechTarget newsletter, please contact Gabrielle DeRussy at [EMAIL PROTECTED] ================================================= 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.