cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Attachment not showing up when using if statement to filter

I have created a gallery  to show SharePoint list items. This gallery has a nested gallery to show attachments.

I also have a if statement on the main gallery to filter base on different buttons user press. This has work for the last 6 months but now it seems to be broken.

 

When I remove the if statement the nested gallery will show the attachments but as soon as I apply the if statement the main gallery will behave correctly but the nested gallery is empty and doesn't show anything.


Is there alternatives to work around this? Or do I have to make new screens with the filters and link the buttons to navigate there?

Please advice and thanks for taking the time to read my post.


Here is sample screen shots of a test screen:

Just filter statement:

miss_haley_0-1665438025287.png

if statement to evaluate button pressed to filter gallery attachment doesn't show

miss_haley_1-1665438084907.png

but all other fields filter correctly

miss_haley_2-1665438121079.png

 

 

6 REPLIES 6
cpadilla
Helper II
Helper II

Hello!

 

question, have you modified the powerapp in those 6 months?

Sounds to me that this could be related to "Explicit Column Selection", have you tried disabling it?

cpadilla_0-1665439746372.png

 

If that works, and you need that enabled, then you could try to use a ShowColumns to force the use of the attachment's column

 

let me know if that works

Anonymous
Not applicable

No it doesn't work unfortunately.

I tried using ShowColumns as well but as soon as I put and if statement in front it doesn't show.

cpadilla
Helper II
Helper II

ups, I'm trying to reproduce the same issue, but I can't. in any case I'm getting the attachment details. 

 

Could you please share what are you using for the items property of the nested gallery? also what version are you on? (see settings -> support)

 

 

cpadilla_1-1665515603958.png

 

cpadilla_2-1665515620941.png

 

cpadilla_3-1665515742431.png

 

 

Anonymous
Not applicable

Hi thanks for your reply,
My nested gallery Items = ThisItem.Attachments

Label in the nested gallery = ThisItem.DisplayName

Just check my version it is different to yours. Will try to downgrade version to yours and see if I can get back the features.

miss_haley_0-1665516033316.png

 

Anonymous
Not applicable

You were correct after downgrading the authoring version I am able to see the attachments again.
This likely means it is a bug with the new authoring version.

 

Thank you so much for letting me know and helping me resolving this issue. I was about to pull all my hair of not understand what in my code was wrong.

Hopefully when they stop supporting this authoring version, the new one won't have issue.

Kevin_Centric
Frequent Visitor

@Anonymous @cpadilla  Thank you for figuring this out a month before I ran into this problem!
I tried downgrading, but the version @cpadilla mentioned is no longer available.
The bug still seems to be present in version 3.22105.21 (currently recommended).
Upgrading to 3.22111.12 fixed the problem, so I'm guessing they've implemented a fix for this bug in the upcoming release.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (4,556)