SearchDomino.com June 4, 2001 Developer Tip ================================================= ------------------------------------------------- Sponsored By: The Learning Continuum Company ------------------------------------------------- Ready for a cup of Java? Don't let your skills become extinct. Learn Java programming with TLCC's distance learning course. This course will get you started with Java and how to create Java-based Domino agents. This course is written exclusively for Notes and Domino developers and contains many live demonstrations and activities you do in Domino. Help from an instructor is only a click away! For more information go to: http://www.tlcc.com/searchdom ================================================= Feature Tip ================================================= Title: Deleting selected docs on Web This tip was submitted by Srinivas Yekkala, a Notes developer in New Hyde Park, New York. Domino does not do everything you need it to for the Web. Therefore, Domino developers have to rely on HTML, JavaScript and other web programming methods. However, using Embedded view and little bit of HTML, we can do some nice Web work using Domino. CODE: First, create a column in the view and give the following formula in the column. uid:=@Text(@DocumentUniqueID); "[ <INPUT TYPE="checkbox" name="Selection" value=""+uid+"" >]" It shows the check box and when users select the check box, it sets the unique ID in a field called 'Selection' on the form (where the view will be embedded). Create a form and embed the above view. Go to embedded view properties and select 'using HTML' for web access property. Then create a computed field called 'selection and allow multiple values.' Create a Lotus script agent 'delete documents' and paste the following script in the agent Dim session As New notessession Dim db As notesdatabase Dim doc,doc1 As notesdocument Dim doc2 As notesdocument Dim item,item1 As notesitem Set db = session.currentdatabase Set doc = session.documentcontext Set item = doc.GetFirstItem( 'Selection' ) Forall v In item.Values Set doc1 = db.getdocumentbyunid(Cstr(v)) Call doc1.remove(True) End Forall Specify the agent name in the web query save event of the form. Now open the form in the browser and select the docs by using the check boxes provided and submit it. You have to submit the form, and then the agent will pick up the unids of the docs and delete them one by one. You can also use the same method for updating the selected docs. It took a fair amount of time and help from my seniors to do this. I hope Domino developers will find this tip useful! http://searchdomino.techtarget.com/tip/1,289483,sid4_gci550546,00.html ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ================================================= Sponsored By: ONLINE CORPORATE SOFTWARE ------------------------------------------------- *********** WIN AN IBM THINKPAD T21 ************* Online Corporate Software is giving away a brand new IBM Thinkpad T21. To enter the draw just visit our website and complete the trivia quiz. With over 35 open source code Lotus Notes applications and free online Notes technical support OCS is fast tracking domino development. http://www.onlinecorporatesoftware.com ================================================= NEWLY POSTED DEVELOPER TIPS: ================================================= We posted 17 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] Another spin on Spam blocking [2] Forwarding mail one by one Domino Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283837_alpD_idx0,00.html [1] Open a link in a new window Formula Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283836_alpD_idx0,00.html [1] Rolling twelve month keyword field HTML Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283838_alpD_idx0,00.html [1] Make a response document's row cross multiple columns on the Web [2] Submitting a form using the ENTER key JavaScript Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283840_alpD_idx0,00.html [1] Getting the value of checked radio button [2] Control action buttons visibility on a child Script Category http://searchdomino.techtarget.com/tipsIndex/0,289482,sid4_tax283841_alpD_idx0,00.html [1] Excel data import using LotusScript [2] Tired of going down the file tools debuglotuscript menu everyday? [3] Checking a user's mail file properties [4] Page breaks in tables [5] Quick messenger in Notes [6] Create a replica stub with LotusScript [7] Change a form's background color in the Notes Client via script [8] Extract the public key from the current active user [9] Create dynamic local or server URL links for Web browsers ================================================= 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 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ------------------------------------------------- JUNE'S NEW TIP PRIZE! ------------------------------------------------- Will you be sporting the Secret Agent Man Digital Seiko 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.