web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / GroupBy Galleries need...
Power Apps
Answered

GroupBy Galleries need to collect IDs of nested galleries for a patch.

(0) ShareShare
ReportReport
Posted on by 235

Okay, I've got a GroupBy gallery and nested child situation.  I have checkboxes on the children and a checkbox on the parent to "check all" the child boxes in that selected nested gallery.  

 

I can collect the IDs only if they physically check the child checkboxes.  On the OnSelect of the Parent CheckAll I set a variable on and that variable supplies the value to the child checkbox from the checkAll to check the child on or off accordingly.  That works fine.  But I don't know how to "fire" each child's OnCheck routine based on the Parent's checkAll checkbox.   IF setting on all the child checkboxes to true actually fired the Children's OnCheck I'm sure it would work but that is not the case.   

 

So any ideas how to manually fire a checkbox's OnChecked?  I'm thinking not but I have to ask... I'm so close.  

 

Thanks in advance.

Categories:
I have the same question (0)
  • Verified answer
    BCBuizer Profile Picture
    22,565 Super User 2026 Season 1 on at

    Hi @AmyF ,

     

    Instead of using the OnSelect property, why not use a nested ForAll function to gather all items that have their checkbox value set to true?

     

    For instance:

    Clear(colSelectedItems);
    ForAll(
     ParentGallery.AllItems,
     ForAll(
     ChildGallery.AllItems,
     If(
     ThisRecord.Checkbox1,
     Collect(
     colSelectedItems,
     ThisRecord
     )
     )
     )
    );
  • AmyF Profile Picture
    235 on at

    Thank you so much, I actually got to this answer last night but it's good to have the confirmation to anchor what I think I know.  🙂  Cheers, (I have one last problem, I hope it's my last)  I'll post the link back when I post it.  It deserves its own post.  Thanks again.

  • AmyF Profile Picture
    235 on at

    I cc'd you into my next post.  cheers, sir.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Users!

Kudos to our 2025 Community Spotlight Honorees

Congratulations to our 2025 community superstars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 542 Most Valuable Professional

#2
Haque Profile Picture

Haque 206

#3
Kalathiya Profile Picture

Kalathiya 201 Super User 2026 Season 1

Last 30 days Overall leaderboard