Notifications
Announcements
Hi Experts,
I have a sharepoint list that the users fill out all the fields and also upload images using an attachment control. I've then got a search page on my app so the users can search for their raised ticket but i'd like to show a gallery that also has the images that was uploaded, what do I need to set the formula to please?
Thanks in advance!
Hey @Dave-ITMan
If you have a single attachment you can use the following formula to add the attachment image as image in the gallery.
First(ThisItem.Attachments).AbsoluteUri
Hi @Sundeep_Malik ,
Thanks for your reply, some tickets have one image but other tickets have several images, could be 10 on some occasions?
Regards
Hi @Anonymous ,If you want to show multiple attachments, what you can simply do is on Select of gallery icon collect attachments in Collection. And add that collection to different gallery.
ClearCollect(myAttachments,ThisItem.Attachments)
Hi @TikshaAggarwal ,
Thanks, my current search gallery has the below in it's OnSelect
Select(Parent)&Navigate (ViewImages)
Can you advise how I should adapt that and then what I should put in my 2nd gallery to be able to view the images of the selected item?
On the first screen put this code onSelect of Icon
ClearCollect(myAttachments,ThisItem.Attachments); Navigate(ViewImages)
Now after navigating to ViewImages Screen. Add collection myAttachments to the Items property of a gallery.
Please click Accept as solution if this helped you solve your issue. This will help others find it more readily. It also closes the item. Please consider giving it Thumbs Up.
That's great thank you, is there a way that when you click on each image, it can then go full screen or at least bigger?
Thanks for your help!
Yes this is possible @Dave-ITMan. OnSelect of gallery set a variable
Set(currentImage, ThisItem)
Now you may use this variable on Next Page. Add Image Control here. Set Image property to this:
currentImage.AbsoluteUri
Hope this helps.Please click Accept as solution if this helped you solve your issue. This will help others find it more readily. It also closes the item. Please consider giving it Thumbs Up.
Hi @TikshaAggarwal
Thanks, that works but it doesn't take them to the next page where the image is larger, can it do it on the same page at all?
@Dave-ITMan, I guess you haven't added Navigate(ScreenName); OnSelect of gallery item. You can adjust image size as well by changing height and width of image control
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268