This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal


May 6, 2015, 3:15 PM
4 Posts

Display image on web

  • Category: Application Development
  • Platform: Windows
  • Release: 9.0.1
  • Role: Developer
  • Tags:
  • Replies: 2

I am having issues with displaying a image in a Rich Text field on Notes document on the web.  On web form, I have a form with a computed Rich Text field with this logic for the value:
@DbLookup("":"NoCache";"":@DbName;"notices";"americas-en-LoginMsg";"Error_Body";[FailSilent]).  The source document is different than the destination document.

When The Web form opens up, only the formatted text displays and the image is just a place holder with no image displaying.  Any ideas on how to get it displayed.  Using Domino server vers. 9.0.1

May 6, 2015, 8:40 PM
4 Posts
SOLVED

I placed the image in Resources>Images and used pass thru HTML on source document to reference it:  <img src="https://something.com/webpages/database.nsf/Buyback.gif?OpenImageResource">

May 6, 2015, 9:50 PM
328 Posts
I have used...

Similar to your original post, I have a database that users can update drawings, then the drawings are sorted in a view.

In the head of the form, i have a CFD field named 'DwgName' with the following code:

dwgname := @DbLookup( "":"" ; "" : "path/file.nsf" ; "view" ; key ; 3) ;

@If( @IsError( dwgname ) ; "" ; @Subset(dwgname ; 1 ) )

where in 'view', column 1 is the document title/key, column 2 is a sorted column to place the newest document with the same key first, and column 3 is 'Attachment Names'.

Later, on the form, where the image will be shown, my code is:

@If( dwgname = "" ; "<h4>(Sorry, No illustration available at this time)</h4>" ; "<img src=\"/path/file.nsf/view/" + key  + "/$file/" + dwgname + "\" alt=\"Illustration " + dwgname + "\">")

Which then appears in the HTML page source as:

<img src="/path/file.nsf/view/key/$file/key.jpg" alt="Illustration key.jpg">

See Designer Help -> URL commands for opening attachments, image files, and OLE objects 

 

The solution you found, of course, works as well, and I'm using the same method other places, but for a couple apps, I let the users update the images to be shown on the web then I don't have to mess with it...


This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal