Home > Ask the Domino Experts > LotusScript Questions & Answers > Finding the properties of a doclinked Lotus Notes document
Ask The Domino Expert: Questions & Answers
EMAIL THIS

Finding the properties of a doclinked Lotus Notes document

Cregg Hardwick EXPERT RESPONSE FROM: Cregg Hardwick

Pose a Question
Other Domino Categories
Meet all Domino Experts
Become an Expert for this site


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


>
QUESTION POSED ON: 17 May 2006
I'm trying to follow a doclink in LotusScript (Domino R5). I want to get the properties of the doclinked document. For example, I have a mail(mail1) with a Lotus Notes doclink that is another mail(mail2). I want to copy the body of mail2 in mail1.

>

To do this, you really need to use the NotesRichTextDocLink class available in Domino R6. This gives you exactly what you are looking for, and the Domino R6 Help contains reasonably useful examples. For a Domino R5 solution, you may have to buy the Midas Rich Text LSX Toolkit from Genii Software, which provides advanced access to Rich Text field properties.

If neither of these is an option, I would suggest you get a copy of the Lotus Notes XML Toolkit. I can no longer find a link to this download, as IBM is more aggressive about pushing us to upgrade than Iris was.

At any rate, using the DXLexporter class exposed by the toolkit, you should be able to dump the Lotus Notes document in question (Memo1) to an XML file. You can then parse the file looking for a node that looks something like this:

<noteinfo noteid='2534a' unid='6D19CA3D04611C288625705B0055F690' sequence='2'>
<created><datetime dst='true'>20050812T103856,80-05</datetime></created>
<modified><datetime dst='true'>20050812T103906,48-05</datetime></modified>
<revised><datetime dst='true'>20050812T103906,47-05</datetime></revised>
<lastaccessed><datetime dst='true'>20050812T103906,47-05</datetime></lastaccessed>
<addedtofile><datetime dst='true'>20050812T103906,02-05</datetime></addedtofile>
</noteinfo>

Then, its a few simple steps to get the target Lotus Notes database, get the link target and render it into a new e-mail using the RenderToRTitem method of NotesDocument. Hopefully, you or one of your colleagues already has a copy of the Lotus Notes XML Toolkit. If you have trouble finding it, you might consider routing the e-mail through a mail-in database in a DominoR6 server.


Do you have comments on this Ask the Expert Q&A? Let us know.


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
LotusScript
Can you use LotusScript to read a text file attached to a Notes doc?
Customize the principal field of outgoing email messages
Can I use LotusScript to merge cells in a Microsoft Word table?
Modifying LotusScript code for date and time handling
Use DXL utilities for advanced replication settings in Notes
Use LotusScript to create encrypted replicas
Write a LotusScript agent to automate file attachments
Troubleshooting a scheduled agent not running on a Global Notes Architecture (GNA) server
Setting up local replication of a Lotus Notes database for offline employees
Creating a link on an HTML page to a Microsoft Word attachment in a Lotus Notes database

LotusScript
LotusScript finds the first occurrence of a string from the right
Clear Recent Contacts view and prevent repopulation in Lotus Notes 8.x
Search Microsoft Active Directory with LotusScript
Three steps to trap and handle save conflicts with LotusScript
Troubleshoot agents by displaying LotusScript variables online
LotusScript sorts lists alphabetically
Run or restart Notes/Domino agents via text messages
LotusScript code rebuilds corrupted busytime.nsf file
Soft-code item names to facilitate LotusScript management
LotusScript agent automates selective mail file replication

XML and Web Services for Lotus Notes Domino
Create an RSS feed in Notes/Domino 8 with XML
Verify scheduled agent status with Domino Extensible Language (DXL)
Top 10 Lotus Notes Domino programming and development tips of 2007
A bevy of Notes/Domino development tips
Loading XML from JavaScript
How to apply XSL style sheets to XML views
Top 10 Notes/Domino developer tips of 2006
A smorgasbord of Notes/Domino development tips
Converting XML files into Lotus Notes documents
How to override default Lotus Notes print settings

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary



Search and Browse the Expert Answer Center
Search and browse more than 25,000 question and answer pairs from more than 250 TechTarget industry experts.
Browse our Expert Advice



Lotus Notes Domino on Blackberry and mobile devices
HomeTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 1999 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts