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!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,587)