Search code examples
lotus-noteslotus-dominolotuslotusscriptlotus-formula

Display image in notes form from another database


In a traditional notes form, I want to compute an image dynamically. Image is in another database's image resource in the same server.

I have tried using pass thru HTML by computing the URL in computed text. Its working fine in web. But I need to show the form in Notes Client. I am using the client version 8.5.2.

In computing URL I have tried using notes:// instead of http://. Still no luck. If anybody help me to find out.

Thanks in advance.


Solution

  • It appears the computed image resource doesn't like implied text construction, I tried to do exactly as you building the image string and it kept failing until I did this:

    @Text(@GetField("from") + ".jpg")

    I used a combo box "from" to test with "refresh on keyword change" to simulate a new value. The images changed beautifully and the resource was selected from a different database.

    One thing to watch for, that I was unaware of, is if you create an image resource and import a .bmp (bitmap) image, it's changed to an .jpg. This could mess you up by trying to reference a non existing image.

    In short, a computed image resource from a different database will work.