cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
LucasCorsinoPAE
Frequent Visitor

Nested Galleries + Edit Form using Dataverse

Hello!

 

i'm having some trouble with nested galleries and editing forms. 

 

I have 2 tables, one for buildings and other (the fact table) with dates and progress, all in Dataverse tables with a One to Many relationship by the ID of the buildings.

 

Inside the app, i have:

 

  • Gallery 1 (table 1 - Buildings) connect to my Form 1 in edit mode, that works perfect, i can choose form the gallery and edit the fields. Form 1: DataSource = Table 1 and Items = Gallery1.Selected

 

  • Gallery 2 (table 2 - Dates and Progress)  connect to my Form 2 in edit mode, that also works perfect, i can choose form the gallery and edit the fields. Form 2: DataSource = Table 2 and Items = Gallery2.Selected

 

That's works fine, buy i want to use ONLY ONE gallery to filters both edits form at the same time.

 

Here's a picture of the app with 2 galleries and 2 edit forms:

 

LucasCorsinoPAE_0-1653670938679.png

I tried using nested galleries, but when i put Items = ChildGallery.Selected that's didn't work.

 

Here's with a only 1 gallery (main gallery + nested gallery) and the 2 edit forms. But didn't work.

LucasCorsinoPAE_1-1653671679704.png

 

I hope you can help me with this problem.

 

Regards!

Lucas

 

 

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
BCBuizer
Super User
Super User

Hi @LucasCorsinoPAE,

 

I meant to set the Item property for varChild only, without anything after that.

 

However, it seems you have a 1:1 relationship between the two lists. Can you confirm?

 

I that is the case, there is no need for any second gallery, nested or not, because you can use a lookup in the Item property instead:

 

LookUp(Table2, ID = Gallery1.Selected.ID)

View solution in original post

4 REPLIES 4
BCBuizer
Super User
Super User

Hi @LucasCorsinoPAE ,

 

A way to make this work might be to set the OnSelect property of the child gallery to:

 

UpdateContext({varChild:ThisItem})

 

This variable can then be linked to Form2 by setting is as the Item property.

@BCBuizer Thank's for your answer, it's wotks fine in a text box but didn't work as a Item Property in my Edit Form 2.

 

My Edit Form have a lot of dropdowns vinculated to the columns of my fact tables with options (previously created in Dataverse).

 

For my dropdowns i use this type of code: Choices('Baja (Table2)')

 

Here's the pic of the problem:

 

LucasCorsinoPAE_0-1653676436306.png

 

Thank' you for the helping, we are near to the solution!

 

Cheers,

Lucas

 

BCBuizer
Super User
Super User

Hi @LucasCorsinoPAE,

 

I meant to set the Item property for varChild only, without anything after that.

 

However, it seems you have a 1:1 relationship between the two lists. Can you confirm?

 

I that is the case, there is no need for any second gallery, nested or not, because you can use a lookup in the Item property instead:

 

LookUp(Table2, ID = Gallery1.Selected.ID)

@BCBuizer Yes, for now the relationship is a 1:1 from the main table to the fact table.

 

Your solutions works fine! Thanks for your time!

 

Cheers,

Lucas

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (1,805)