Skip to main content
1-Visitor
October 6, 2018
Solved

How to display images in Repeater using Value Display widget ?

  • October 6, 2018
  • 3 replies
  • 2111 views

Hello,

 

I have a File Repository Thing where it contains a folder with certain images in Storage.

I have to display the images in Repeater Widget.

It should contain 'n' number of columns as 'n' number of images a folder contains.

Is there any way to do?

 

Thanks for support !

 

 

Best answer by AdamR

You would need to create a service to read the images from the repository, this would be done with the LoadImage service on the repository thing.  From there create an infotable that has a column of type image image and add each image to the infotable row.

 

Return this infotable from the service and bind it to a repeater that has the value display (and the mashup parameter of type image).  You can set the repeater "View" property to horizontal to get the images as columns.


Thanks,

Adam

3 replies

AdamR14-AlexandriteAnswer
14-Alexandrite
October 11, 2018

You would need to create a service to read the images from the repository, this would be done with the LoadImage service on the repository thing.  From there create an infotable that has a column of type image image and add each image to the infotable row.

 

Return this infotable from the service and bind it to a repeater that has the value display (and the mashup parameter of type image).  You can set the repeater "View" property to horizontal to get the images as columns.


Thanks,

Adam

1-Visitor
October 11, 2018

Maybe better, the exact same approach as Adam said, but instead of LoadImage (which will require a lot of memory to work) just get the FileRepository file Link (GetFileListingWithLinks) and use the Link to set the image with IMAGELINK instead of IMAGE.

Support
October 15, 2018

Hi @alekhya.

 

If one of the previous posts provided an answer to your question, please mark it as the Accepted Solution for the benefit of others who may have the same question.

 

Regards.

 

--Sharon