cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
KSven
Advocate V
Advocate V

Container in Gallery | Collect / Patch / Sum Items

Hi lovely Community,

 

currently I'm confused about container in gallery.

 

KSven_2-1636564902715.png

 

I've built a gallery with container for nice responsive view, but now I've recognized I can't collect / patch / sum all items of gallery.

E.g. I've tried to collect with classic like this:

 

ForAll ( Gallery.AllItems , Collect ( Collection , { Bezirk: ThisRecord.Bezirk } ) )

 

"Bezirk geteilt" means "Subdistrict" in my example..

Looks like this in gallery:

KSven_0-1636564781438.png

 

But with ForAll Collection result is like this:

KSven_1-1636564822305.png

 

Is it cause of the container? Why there's always the same results and not the three of original gallery?

 

BR,

 

Sven

 

2 REPLIES 2
LuDev
Frequent Visitor

I tested it here and it doesn't seem like something related to the container. That way it works too:

 

 

Screen.OnVisible = 
Collect ( Collection , { Bezirk: Gallery.AllItems.Items } )

 

Or...

 

Screen.OnVisible = 
ClearCollect ( Collection , { Bezirk: Gallery.AllItems.Items } )

 

Hi LuvDev,

 

thank you for your reply, but unfortunately that wouldn't work for me.

I've Labels and Text Inputs inside of container and need to collect these as well.

 

With "Gallery.AllItems." -> There's just the container as option and nothing more...

Labels and Text Inputs out of container I can collect...

Helpful resources

Announcements
2022 Release Wave 1 760x460.png

2022 Release Wave 1 Plan

Power Platform release plan for the 2022 release wave 1 describes all new features releasing from April 2022 through September 2022.

User Group Leader Meeting January 768x460.png

Calling all User Group Leaders!

Don't miss the User Group Leader meetings on January, 24th & 25th, 2022.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Top Solution Authors
Top Kudoed Authors
Users online (2,583)