cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
RameshMukka
Responsive Resident
Responsive Resident

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,

 

View solution in original post

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 User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (21,028)