Skip to main content
1-Visitor
Oct 6, 2018 7:21 AM UTC
Solved

How to display images in Repeater using Value Display widget ?

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 !

 

 

AdamRAnswer
14-Alexandrite
Oct 11, 2018 6:26 PM UTC

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
Oct 11, 2018 6:26 PM UTC

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

Translate
1-Visitor
Oct 11, 2018 7:13 PM UTC

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.

Translate
Support
Oct 15, 2018 6:01 PM UTC

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

Translate