Show thumbnail of incoming image attachments

Hi,

When a user receives an email with one or many image attachments I’d like to display a thumbnail of the image(s).

So I thought I could add a textfield with a computed for display formula:

” (and put on some height and width for minimizing it as well later)

this however only lists out the names of the attachmentsfiles and don’t display them as images.

How can this be done? if it’s possible.

Searched the forum but can’t find a solutions or lead to my problem.

thanks in advance.

Staale

Subject: use computed text…

Hi

As en example you could:

  • add “computed text” to the form.

  • Mark it as passthru HTML.

  • have a formular something like:

“<img src = "http://"+@Name([CN]; @ServerName)+”/“+@WebDbName+”/0/“+@Text(@DocumentUniqueID)+”/$FILE/“+@AttachmentNames+”?openelement">"

  • set property on form “Render pass through …”

The attachments will then be rendered as HTML images.

The main issue is that the server must run the HTTP task and the user must be logged in… (show stoppers :slight_smile:

brgds Jesper Kiaer

Subject: almost work but why is localhost added automatiacally in front?

This seems to solve the case but where do I turn off the automatic functionallity that adds http://localhost in front so that my url becomes: http://localhosthttp://localhost/webdb/o/…

In notes 8. If I code in a <a href or <img src then it adds the http://localhost in front by itself just like that… I add a simple test to my form and then the url becomes http://localhostwww.cnn.com

thanks in advance

Subject: It works if I code it well but still the image is not showing…