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!
@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
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?
Regards
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 ,
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!
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.
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?
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 @Sundeep_Malik ,
Thanks for your reply, some tickets have one image but other tickets have several images, could be 10 on some occasions?
Regards
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
WarrenBelz
146,524
Most Valuable Professional
RandyHayes
76,287
Super User 2024 Season 1
Pstork1
65,906
Most Valuable Professional