Showing results for 
Search instead for 
Did you mean: 
Level: Powered On

click on gallery of attachments to show larger image

I am trying to imitate Wonder Laura's Powerhour Gallery of Attachments.  I have it set up a little different though.  I have different screens and forms for Browse gallery (Screen 1), new/edit (Screen 2), and detail (Screen 3).


I have put ClearCollect(colAttachments,BrowseGallery1.Selected.Attachments) on the OnSelect of the BrowseScreen Gallery.  The Attachments show up in the new/edit screen new gallery, GalAttahcments, by adding a gallery to the attachments data card and setting the gallery item to colAttachments. Then I set the OnSelect of the gallery to Set(varPopUp,true).


I then created a image and set the visible to : varPopUp and set the Image to: GalAttachments.Selected.Image.  But my image does not appear.  When I go to  the collection I also cannot see the image. 


Any ideas on why I cannot display the image?2018-11-28 14_45_31-.pngThis is showing my GalAttachments gallery in my attachments datacard on the new/edit screen2018-11-28 14_47_00-Window.pngThis is the popup that will not display the image2018-11-29 06_40_28-Window.pngthis is a print screen of the collection

Level 10

Re: click on gallery of attachments to show larger image



You could try to make a variable based on the Value field off your collection. 

UpdateContext({MyPicture, GalAttachments.Selected.value})

Also remove the varPopUp and show the img based on the variable not to be blank. So Img.Visible


Then on the close button off the pop-up you set this variable to blank(). So Close.OnSelect

UpdateContext({MyPicture, ""})

The Pop-Up will disappear because your variable is a blank string.


Hope this helps.



Helpful resources


Watch Sessions On Demand!

Continue your learning in our online communities.


PowerApps Monthly Community Call

Tomorrow, September 18th at 8am PDT

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020


Power Platform World Tour

Coming to a city near you


PowerApps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!


Join PowerApps User Group!!

Connect, share, and learn with your peers year-round


Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 116 members 4,367 guests
Recent signins:
Please welcome our newest community members: