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.

>
EXPERT RESPONSE

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
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 to extract and move attachments to a Lotus Notes mailbox or file folder
Copying a rich-text field with attachments to a Lotus Notes document
How to convert Lotus Notes documents to .PDF files

LotusScript
Debug Lotus Notes documents using extracted data
Extracting attachments from a Lotus Notes rich-text field
Programmatically replace the design of Lotus Notes databases
Reading a binary field in an Oracle database with LotusScript
LotusScript equivalent of @Picklist for Lotus Notes
Launch large attachments within an email from a Notes database
How to find files on a hard drive or mapped network with LotusScript
Update the ACL from the Roles view with LotusScript
LotusScript agent moves tagged spam email to junk mail folder
Set a value in a field existing in another Lotus Notes database

XML and Web Services for Lotus Notes Domino
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
Workplace Forms add XML future to WebSphere-Domino environments

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

HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersDomino IT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides enterprise IT professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective IT purchase decisions and managing their organizations' IT projects - with its network of technology-specific Web sites, events and magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Reprints  |  Site Map




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