Skip to main content

Notifications

Power Apps - Building Power Apps
Answered

Collect data from Nested gallery

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:
  • Verified answer
    Calcioscacchi Profile Picture
    Calcioscacchi 413 on at
    Collect data from Nested gallery

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

November 2024 Newsletter…

November 2024 Community Newsletter…

Community Update Oct 28…

Power Platform Community Update…

Tuesday Tip #7 Community Profile Tips…

Welcome to a brand new series, Tuesday Tips…

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 143,246

#2
RandyHayes Profile Picture

RandyHayes 76,308

#3
Pstork1 Profile Picture

Pstork1 63,884

Leaderboard