Images In Computed Rtf Field

RTF can be set to "computed". So, if you put in document all info about
"source" of RTF field value, you can obtain images or text into document from
outside documents.
So, here we go:
1. We need a DB, where we'll store our images (in RTF fields of document) - let
it be "archive DB"
2. In target document we'll define "reference fields", which are to identify
"archive document", containing desired image. (for instance, some key value for
key view)
3. In target document we'll define RTF computed field with a formula like

lookup:=@DbLookup("":"NoCache"; &LTArchive DB file> &LTKey view>&LTSource document
Key> &LTRTF field, containing desired image>);
@If(@IsError(lookup);"No!";lookup)

4. On QueryClose for target document we'll put

Sub Queryclose(Source As Notesuidocument, Continue As Variant)
Dim doc as NotesDocument

set doc = Source.Document
If (doc.HasItem(&LTcomputed RTF field>) ) Then
Call doc.RemoveItem(&LTcomputed RTF field>)
Call doc.Save(True, True)
End If
End Sub


That's all. Image (or whatever is stored in archive document) will appear in
target document.

Benefits:
1. Same bulk image can be re-used by many application without disk space loss
2. Source image update will be preformed automatically - every time you open
target document, you'll get current image


Hope, it will help

Dig Deeper on Domino Resources

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchWindowsServer

Search400

  • iSeries tutorials

    Search400.com's tutorials provide in-depth information on the iSeries. Our iSeries tutorials address areas you need to know about...

  • V6R1 upgrade planning checklist

    When upgrading to V6R1, make sure your software will be supported, your programs will function and the correct PTFs have been ...

  • Connecting multiple iSeries systems through DDM

    Working with databases over multiple iSeries systems can be simple when remotely connecting logical partitions with distributed ...

SearchDataCenter

SearchContentManagement

Close