cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mwferris
Advocate I
Advocate I

Nested Gallery Loading Problem

Hello,

 

I have a Gallery nested inside another Gallery using the Planner connection. The "parent" gallery consists of all of a user's plans, and the "child" gallery contains all tasks in a bucket with a specific name (reporting).

 

The "child" Gallery Items formula is:

Filter(Planner.ListTasks(ThisItem.id).value, bucketId = bucket_id.text)

This is resulting in errors being generated when the app loads, saying the Planner.ListTasks id is invalid. This makes me think that the "child" gallery is trying to load before the "parent" gallery has loaded?

 

Is there a way to 1) resolve this issue; or, 2) suppress the error message, as the galleries fill in after a few seconds. 

 

Here is what the nested gallery looks like:

 

Capture.PNG

 

1 ACCEPTED SOLUTION

Accepted Solutions
dinusc
Microsoft
Microsoft

I would suggest to have a dummy collection with the shape of a single task and set it to the child gallery when the ThisItem.id is empty (or is blank). Some fields in the dummy collection could even be set to something like "Loading..."

View solution in original post

2 REPLIES 2
dinusc
Microsoft
Microsoft

I would suggest to have a dummy collection with the shape of a single task and set it to the child gallery when the ThisItem.id is empty (or is blank). Some fields in the dummy collection could even be set to something like "Loading..."

View solution in original post

Thanks, that worked. For anyone else, this was what fixed it:

 

If(IsEmpty(ThisItem.id), Filter(Temp, title="loading..."),Filter(Planner.ListTasks(ThisItem.id).value, bucketId = bucket_id.Text))

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Users online (1,356)