Image Resources in form View!

There is a solution for this problem on the Lotus Notes 5 forum, but it doesn’t appear to work with me. I can think that it may be either that I am using Lotus 6, or perhaps it does not work for a Lotus database template. What I would like to do is to preview thumbnail images in the View listing of the databse documents. According to the solution that I found, I create an Image Resource and put it in a rich text field in a document on the database. Then in the View form, I create a column and set the “display as icons” option in Column Properties. This seems to work for other people, as in the Lotus 5 forum, but it doesn’t work for me, as I don’t see anything in the column. Does anyone know what might be the cause of this problem? Thanks!

Subject: Image Resources in form View!

well first thing is that you can’t use a rich text field as a column value in a view column. this is not allowed. so in order to create a custom icon for a column in a view follow these steps:

  1. Create a image resource (as u did earlier)

  2. Create a field on a form and make it’s field type as text.

  3. create a document with this form and enter the name of the image resource as it’s value. like “abc.bmp”.

  4. create a view and set the column with the filed name you just created in the form.

  5. set the column property “display values as icon”.

It will show you the thumbnail for the image resource in the view.

Hope this time it will work for you. :slight_smile:

Subject: RE: Image Resources in form View!

This works for me, thanks!

But is there a way to do a similar thing in the form/document? In other words, can a field (rich text I assum) in the document show the image resource picture that’s named in the text field?

Subject: RE: Image Resources in form View!

Thanks Nasir, that did the trick! I wonder then, how it is those fellows over at the Lotus 5 forum managed to get it done using rich text…

Subject: RE: Image Resources in form View!

They cheated. The first step in the process was to set the SUMMARY flag on the rich text field using LotusScript. Since view columns can use summary data, and the image resource is not actually IN the rich text field, but linked to FROM the rich text field, the client would see the link in the view and display the image. There is an application in the Sandbox that demonstrates the technique. Note that the “lines per document” setting will severely limit the height of the image you can use, and that this is definitely monkeying with the product in an unsupported manner. If it suddenly stops working in a given release, there’s not a lot you can do about it.