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 nested gallery
Power Apps
Answered

Collect nested gallery

(0) ShareShare
ReportReport
Posted on by 171

Hello all,

 

I have a gallery (Gal_1) with another gallery (gal_2) inside of it. Now I really need help to create a colection of Gal_2. Whatever I have tried only gives me a collection without any data inside.

 

Your help will be very appreciated.

Thanks in advance.

 

Regards

Angela

Categories:
I have the same question (0)
  • Verified answer
    RusselThomas Profile Picture
    4,014 on at

    Hi @Poma1 ,

    A gallery contains multiple rows of data, so I'm assuming the context of collection is for a specific row inside the gallery.  Assuming you have a ParentGallery with each row containing a ChildGallery, and also assuming you want to collect the data for the currently selected item in ParentGallery, then you can add a button outside the gallery and set its OnSelect: property to the following;

    ClearCollect(collectSelectedChildGallery, ParentGallery.Selected.ChildGallery.AllItems)

    This will place the contents of ChildGallery.AllItems for the currently selected row of ParentGallery into the collectSelectedChildGallery collection.

     

    Hope this helps,

    RT

  • Mahaprasad Das Profile Picture
    on at

    I have used above formula but it is not showing any data in it.

    ClearCollect(ColMain, Gallery4.Selected.Gallery3.AllItems);

    My Gallery4 is the distinct value of EmployeeEmail and in Gallery3  I am showing task details of employee By matching the email value and id. And The purpose of doing this to show the multiple task of one employee for the current week. And I want to export the gallery data into excel for that I need to store gallery data in to a collection. I have tried Multiple solutiion but it is not working. One of the formula is 
    ClearCollect(collTwo,Ungroup(ForAll(Gallery4.AllItems,ForAll(ThisRecord.Gallery3.AllItems,{EmployeeEmail:Gallery3.Selected.EmployeeEmailLebel,date:Gallery3.Selected.DateLebel,description:Gallery3.Selected.DescriptionLebel,priority:Gallery3.Selected.PriorityLebel,IsImportant:Gallery3.Selected.PriorityLebel,EstimatedHour:Gallery3.Selected.EstimatedhrsLebel,Status:Gallery3.Selected.StatusLebel})),"Value"));
    It is showing the table but there is no data in it

     

  • MalyMajo Profile Picture
    87 on at

    I have similar issue. Nested gallery appears as empty, only headers are loaded. Have you found any solution?

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 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard