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
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

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 (3,230)