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 1, 2011, 5:30 AM
22 Posts

Is there a way to display image attachments in a view?

  • Category: Other
  • Platform: Windows
  • Release: 8.5.2
  • Role: Developer
  • Tags:
  • Replies: 3
I am developing an XPages application that displays an image library.
 
Each document contains a single image attachment, and then I am using a simple repeat control to display a matrix of thumbnails.
 
This works perfectly on the Web, and the images are displayed using a calculated reference such as... 
 
'/'+database.getReplicaID()+'/0/'+rowData.getUniversalID()+'/$FILE/'+rowData.getColumnValue('attachmentName') 
 
However, this does not translate well with the Lotus Notes client.
I can't remember ever being able to display image attachments from a document in a view.
 
I am just wondering if there is something I am missing that would help me to produce this solution for both clients (browser and Lotus Notes)? 
Any ideas would be greatly appreciated! 
May 1, 2011, 11:45 AM
261 Posts
Re: Is there a way to display image attachments in a view?
Hi Terry,
 
A solution would be to create an XPage and add a data table control to it. Use the view as a data source for the data table and add an image control to one of the columns in the data table. Compute the URL of the image and either use a column value from the view as the URL or compute it.
 
Mark
Aug 31, 2011, 10:57 PM
22 Posts
This may be a little late, but...
 Thanks heaps Paul!
 
This worked perfectly. 
 
With a little modification (instantiating the applicationScope variable once on page open to avoid hundreds of calls using a repeat control), it was fast and rendered the images well.
 
Cheers! 
 
T. 

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