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

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Collect data from Nest...
Power Apps
Answered

Collect data from Nested gallery

(0) ShareShare
ReportReport
Posted on by 413
Hi guys, 
 
in this situation I have a Gallery(Gallery5) inside another Gallery (Gallery4).
 
 
 
 
Where Title1 contains the "Dosatore" Value.
As you can see there is a toggle inside the Gallery5, which is connected to a Yes/no field in the Datasource called "Attivo". 
I need to set the OnCheck property of the toggle collecting the toggle status and the ID of my items, in order to patch the new toggle configuration in the datasource. 
I need to collect all the items because before patching, I need to modify them in order of the costraint that for each item of gallery4 (the father), only one value of "Attivo" can be setted tu Yes. This means that easch "Dosatore" can have only 1 origin.
 
 
 
My problem is that if I try with a test button using the code: 
 
ClearCollect(
           ColTest;
           Gallery5.AllItems
             ) 
 
 
it returns no value. If I try with Gallery4.AllItems, it returns a table as aspected. 
I'm afraid that this is connected to the fact that Gallery5 is nested inside Gallery4. 
 
Any suggestion to solve this?
 
Thanks.
Categories:
I have the same question (0)
  • Verified answer
    Calcioscacchi Profile Picture
    413 on at

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

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 559 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 315 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 250

Last 30 days Overall leaderboard