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 / Embed View of related ...
Power Apps
Unanswered

Embed View of related table into Edit Form - Model Driven App

(0) ShareShare
ReportReport
Posted on by 8

I want to have the edit screen show all the associated rows of its related table.

 

There is a link between the "header" and "details" table with a 1:n relationship. 

 

I want to view all the associated rows like below drawing.

 

AAMW01_0-1657625157860.png

 

Here is my header form currently. I want that associated view (not as a tab) but within the page itself (like above)

 

AAMW01_1-1657625366424.png

 

Here is the details view

AAMW01_2-1657625506688.png

 

I currently have this set as a form control 

<QuickForms><QuickFormIds><QuickFormId entityname="Detail">6ee79240-6bfa-41b8-ab2c-574d877f1fe7</QuickFormId></QuickFormIds></QuickForms>

 

Where I believe that is the ID of my view. However as you can see it shows an error "source record is not selected"

 

Any help is appreciated, thank you

I have the same question (0)
  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @AAMW01 , 

     

    If the details is a 1:N relation, than you will probably need a subgrid on the header form, to allow the user th choose which "detail" record needs to be edited. That can be done with standard SubGrids (or maybe with the new Power Apps Grids), and it coul dbe also editable too.

     

    If that's not enough, and there are so many columns in the "details" table, that is not possible to edit in a grid, you will need to find out how to open the corresponding detail form, when a record in the "details" subgrid was selected.

    1.  This could be done by showing a dialog with the form, each time a "detail" record was selected in the subgrid, (using Xrm.Navigation.navigateTo)
    2. or try some tricks to force the Form Component Control to do what you need 
      1. Please notice that the record shown in the Form Component Control is the one from the lookup where the Control was customized
      2. The config (<QuickForms>...) is only to define which form will be taken. The Id you customie there, is the one for the form (not the viewId)
    3.  Or maybe you could show the Form on the right side, using the SidePanes (here the sdk link).

    Another apporach could be to replace the edit form for the header, with a Custom Page (in that case you would  unfortunatelly need to re-make the forms using Canvas Controls).

     

    Hope this helps!

  • AAMW01 Profile Picture
    8 on at

    Thanks Diana.

     

    I have used a sub grid to display this information within the current form. 

     

    Is it possible to have calculated fields within the header that sum up all the related columns from the details table? Is that possible in Model Driven Apps or would I have to create a canvas app for that? 

  • Verified answer
    Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @AAMW01 , 

     

    The out-of-the-box option would be to use Rollup Columns: https://docs.microsoft.com/en-us/power-apps/maker/data-platform/define-rollup-fields?WT.mc_id=BA-MVP-5004107. That would be the easiest way.

     

    If that's not enough you can still use PlugIns, or Workflows or even Flows. You have all options possible in model-driven apps. 

  • Diana Birkelbach Profile Picture
    3,072 Most Valuable Professional on at

    Hi @AAMW01 , 

    Now you have a new option: using PowerFX in Formula Columns in Dataverse https://powerapps.microsoft.com/en-us/blog/boost-maker-productivity-inside-dataverse-using-formula-columns/

     

  • AAMW01 Profile Picture
    8 on at

    This is brilliant thank you!

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

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard