cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RameshMukka
Post Prodigy
Post Prodigy

Display image attachments from selected gallery item in HTMLText Control

My Gallery gallery1 is having SharePoint list as datasource. Gallery items can have several text values and one or more image attachments. I would like to place few text columns and image attachments of selected gallery item on HTMLText Control. Text values from gallery selected item I was able to figure out. But I couldnt figure out to display image attachments coming from selected gallery item on my HTML text control. Is it possible with HTMLText Control?

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @RameshMukka ,

You can follow the below approach,
See the reference Demo - 
ImageDisplayInGallery.gif
Hope this will help you to resolve your Issue
Thanks,

 

View solution in original post

8 REPLIES 8
VijayTailor
Resident Rockstar
Resident Rockstar

Hi @RameshMukka ,

If you want to Display Image in the gallery or Other type.

You can try below. I am displaying the attachment  Image in the Gallery.

First(ThisItem.Attachments.AbsoluteUri).AbsoluteUri

VijayTailor_0-1601926563463.png

 

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay



  I have used below HTML code and as expected it only fetched one image. My selected gallery item can have more than one image. How can I fetch all images? 

<table>
<tr>
<td> <img src='" & First(Gallery1.Selected.Attachments.AbsoluteUri).AbsoluteUri & "'></td>
</tr>
</table>

@VijayTailor

Hi @RameshMukka ,

If you using HTMLText then Please use the double quote "and paste you HTML content here"

See the reference image below.

VijayTailor_0-1601928866157.png

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

Sorry, if my question didnt make sense. Your formula worked well for me. But its getting only one image. My selected gallery item can have 1 or more image attachments. How do I fetch all image attachments and put them in table data.

@VijayTailor

 

Hi @RameshMukka ,

I can suggest better use gallery for this purpose.
see the below image for reference - 

Gallery11.Selected.Attachments

VijayTailor_0-1601930512514.png

Thanks,

Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."-Vijay

 



My gallery has got several filters so am unable to use gallery1.selected.attachments. I used the one below. But I dont see images coming up. I have used ThisItem.Value and also ThisItem.AbsoluteUri for gallery item. Both didn't help

 LookUp('BPIMB Solution Catalog',ID = Gallery1.Selected.ID).Attachments 

 

 

 

RameshMukka_0-1602007167422.png

Hi @RameshMukka ,

You can follow the below approach,
See the reference Demo - 
ImageDisplayInGallery.gif
Hope this will help you to resolve your Issue
Thanks,

 

Thank you so much Vijay. This is what I was looking for and it worked like a charm. Thanks a lot for your patience and time!

 

 

Helpful resources

Announcements
PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

Microsoft Build 768x460.png

Microsoft Build is May 24-26. Have you registered yet?

Come together to explore latest innovations in code and application development—and gain insights from experts from around the world.

May UG Leader Call Carousel 768x460.png

What difference can a User Group make for you?

At the monthly call, connect with other leaders and find out how community makes your experience even better.

Top Solution Authors
Top Kudoed Authors
Users online (2,190)