I would like to have a specific image resource displayed in a field based on the selection made in another field. Can someone provide me with guidance or point me to an example of how this could be done.
I am using Notes Client v6. I saw this in help but could not get it to work:
You can use Pass-thru HTML to reference image resources within a database.
- Enter the HTML
tag using the name of the image resource. For example:
![]()
-
Select text and choose Text - Pass-thru HTML.
-
(Optional) Use other HTML formatting tags to position the image.
Subject: Displaying image resource
You say you are using a Notes client, but then you mention HTML. Do you want this to work for Notes clients, for web browsers, or both?
Subject: RE: Displaying image resource
We are only using the Notes client. That was the only reference I could find in help. Sorry for the confusion.
Subject: RE: Displaying image resource
An easy way is to use a background image in a table cell. You can use a formula to specify the name of the image, and it refreshes with the open document.Another way is to put the image in Rich Text by using DXL or API calls. As usual with Rich Text, if you do this in an open document you have to close and reopen it to see the change. If it would be any help, I can provide sample code for these methods.
Subject: RE: Displaying image resource
Rod,
Thank you for your response. If you could provide any expamples that would be great. I will try using the table cell method to see if I can figure it out on my own. I am not at all familiar with the DXL or API calls you mentioned, but am interested to see how they would work as well.
Thanks again.
Subject: RE: Displaying image resource
There is some more information about using a table cell here.There is a DXL sample here for a different purpose. For a picture using an image resource, you can use tags like:
There is an API sample here for a different purpose, to let you see what kind of techniques are involved. If you want to adapt this for a picture using an image resource, I suggest you e-mail me for further details. . My e-mail address is in my profile.