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

Showing List Attachments in a gallery

I have created an App which shows the Attached files in a Sharepoint list using the Attachments field.  I can attach the photos and they appear in the attachment list.  I can select the Atachment from the list and the photo is downloaded to the Phone and displayed.

 

A user has asked if it would be possible to show the attachments in an Image gallery instead of having to download the file first.  Is this possible?  I have had a look around the internet and the PA community but can't find anything.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support Team
Community Support Team

Re: Showing List Attachments in a gallery

Hi @fbxiii,

 

Yes, it is possible to show Attachments in an Image Gallery.

Please follow the steps below:

1. Add a gallery (BrowseGallery1) to hold the SharePoint list, add another Image Gallery, 

2. Configure the Image Gallery items property to:

BrowseGallery1.Selected.'{Attachments}'

3. Under the Image control of the Image Gallery, specify the Image property as:

ThisItem.Value

4. Under another LabelBox, specify the text property as:

ThisItem.DisplayName

See my testing example:

15.PNG

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
17 REPLIES 17
Highlighted
Community Support Team
Community Support Team

Re: Showing List Attachments in a gallery

Hi @fbxiii,

 

Yes, it is possible to show Attachments in an Image Gallery.

Please follow the steps below:

1. Add a gallery (BrowseGallery1) to hold the SharePoint list, add another Image Gallery, 

2. Configure the Image Gallery items property to:

BrowseGallery1.Selected.'{Attachments}'

3. Under the Image control of the Image Gallery, specify the Image property as:

ThisItem.Value

4. Under another LabelBox, specify the text property as:

ThisItem.DisplayName

See my testing example:

15.PNG

 

Regards,

Michael

 

Community Support Team _ Michael Shao
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
fbxiii
Level: Powered On

Re: Showing List Attachments in a gallery

Thats great, thank you Smiley Happy.  I was trying to Filter it but wasn't getting very far.

Guru
Level: Powered On

Re: Showing List Attachments in a gallery

How can i  show or preview the attachements in the form.i am using sharepoint list as data source , when the users selects the list i want to show the preview of the attachement (basically my attachement is a image ).please can anyone help me with this.

Syam
Level: Powered On

Re: Showing List Attachments in a gallery

I am trying to follow the steps indicated in this response. I have created a list which has attachments. I used that sharepoint list as a data source for teh Gallery control.

 

Now when I try to bind the "Items" property of the Galley control, I cant find the "{Attachments}" column as part of the "selected".

Am I missing any steps? PLease help.

 

Thank you

Syam

MasterOffice365
Level: Powered On

Re: Showing List Attachments in a gallery

SharePoint Images Powered Up In PowerApps

 

Any image stored in SPO, rendered within a PowerApps app in any resolution as you so desire.

 

Desktop Video Demo

38 MB Image
  • Thumbnail as small as: 3-5 Kb
  • 2500px rendition: 200 Kb
panand99
Level 8

Re: Showing List Attachments in a gallery

I am facing the same issue, Galley.Selected.'attachments' option not visible.

does anyone have any idea how to solve this issue.

 

Rick72
Level 10

Re: Showing List Attachments in a gallery

Hi @panand99,

 

It is available and working for me. Are you connecting to a SharePoint list?

 

Robot Happy Rick

panand99
Level 8

Re: Showing List Attachments in a gallery

Yes, You are right. when we connect to SharePoint list then only this option is available.

 

Thanks

Babalaul
Level: Powered On

Re: Showing List Attachments in a gallery

Hi,

 

Can you please advise what will be the command to remove the attachements ? Per your example, i would like to remove 10 and 9 and keep 11. 

 

Thanks