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

Cannot display Gallery of records with many to many relationship to Model Driven Form Integration

Hi,

 

So I have a Machine Entity with a one to many relationship to an entity called Model. Model then has a many to many relationship with an entity 'Model Option Groups'. From the Canvas App embedded in my Machine Entity Form I'm looking to display in a gallery the Option Groups that are linked to the Model the Machine is linked to.

 

My formula that isn't working is:

[@ModelDrivenFormIntegration].Item.Model.'Option Groups'

 

Any ideas?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
Community Support
Community Support

Hi @rpxxx .

 

[@ModelDrivenFormIntegration].Item.Model is a table since one Machine may correspond to multiple Models, so your code doesn't make any sense.

I suggest you to new Gallery1 to select all Models that link to Machine, set Gallery1.Items: [@ModelDrivenFormIntegration].Item.Model

Then, Set the Gallery2.Items: Gallery1.Selected.'Option Groups'.

 

If each Machine only have one model, then you can skip the step of selecting the model(Gallery1), Set the Gallery2.Items property directly: First([@ModelDrivenFormIntegration].Item.Model).'Option Groups'

 

Hope this helps.

Sik

View solution in original post

1 REPLY 1
Community Support
Community Support

Hi @rpxxx .

 

[@ModelDrivenFormIntegration].Item.Model is a table since one Machine may correspond to multiple Models, so your code doesn't make any sense.

I suggest you to new Gallery1 to select all Models that link to Machine, set Gallery1.Items: [@ModelDrivenFormIntegration].Item.Model

Then, Set the Gallery2.Items: Gallery1.Selected.'Option Groups'.

 

If each Machine only have one model, then you can skip the step of selecting the model(Gallery1), Set the Gallery2.Items property directly: First([@ModelDrivenFormIntegration].Item.Model).'Option Groups'

 

Hope this helps.

Sik

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Top Solution Authors
Top Kudoed Authors
Users online (5,592)