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

List in PowerApps "has this Item an Attachment" in a Gallery

Hello,

 

i need a little help or an idea how can i show in a gallery Attachments Icon.

 

My App get connected to sharepoint Library, some items has Attachments and some Items has no attachments.

The gallery with my items works fine but additionel  i want to show in my gallery for each item an attachment icon that has an attachment

 

I have an Icon with visible showAttach

 

I try this:

If(Gallery1.Selected.'{Attachments}'.DisplayName;true;UpdateContext({showAttach:true});UpdateContext({showAttach:false})

but nothing happens.

 

Can anyone help me?

 

Thanks a lot :-)

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Super User
Super User

Re: List in PowerApps "has this Item an Attachment" in a Gallery

Try doing it this way.

  1. Edit the Gallery and add an Icon to the Gallery Records
  2. Set the Visible property of the Icon object in the first Gallery record to 'If('Has attachments',true,false)'

That will display the Icon in each record where the item.hasAttachments property returns a value of true. I tested it and it works for me.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.
1 REPLY 1
Highlighted
Super User
Super User

Re: List in PowerApps "has this Item an Attachment" in a Gallery

Try doing it this way.

  1. Edit the Gallery and add an Icon to the Gallery Records
  2. Set the Visible property of the Icon object in the first Gallery record to 'If('Has attachments',true,false)'

That will display the Icon in each record where the item.hasAttachments property returns a value of true. I tested it and it works for me.



-------------------------------------------------------------------------
If I have answered your question, please mark your post as Solved.
If you like my response, please give it a Thumbs Up.