Form Component Control for related entity display on main form - powerapps

Form Component Control in Dynamics 365 / Power Apps

   

Form Component Control can be used to update the parent record 

Below is our custom entity/table named Sample Entity having contact’s lookup.

Form Component Control for related entity display on main form - powerapps

Let us add one more contact field, specify the Form Component control for it

Form Component Control for related entity display on main form - powerapps

 

 

 

We need to specify the main form to be used as a static value within the QuckForms tag.

Form Component Control for related entity display on main form - powerapps

entityname will be the schema name of the entity and the id of the main form.

Form Component Control for related entity display on main form - powerapps

Form Component Control for related entity display on main form - powerapps

Get the form id in the classic form editor –

Form Component Control for related entity display on main form - powerapps

 

And in the new form designer –

Form Component Control for related entity display on main form - powerapps

Save and publish the change.

Form Component Control for related entity display on main form - powerapps

We can see the main form of the contact being rendered within the custom entity’s form on the selection of Contact lookup value.

Form Component Control for related entity display on main form - powerapps

 

Now let us look at the some of the key points –

  • Only the Main form can be considered while using form component control i.e. only the main form can have the form component control which must be the main form itself. Quick View, Quick Create, and card cannot be used.
  • The form component will only show the first tab of the form. Below is the form we have configured, but it shows only the summary tab.

Form Component Control for related entity display on main form - powerapps

  • The validation of the embedded parent form still applies as shown below.

Form Component Control for related entity display on main form - powerapps

  • Data is sent for save independently for each record, which has no defined order.
  • It is not recommended to use the form with Business Process Flow as a form component.
  • Form components cannot have another main form with form components embedded in them. Although we do not get any error, it might be unsupported.

 

Form Component Control for related entity display on main form - powerapps

  • The same form can be used across different form components but is not supported as per Microsoft Docs. Here we have embedded the same form inside Account’s form.

Form Component Control for related entity display on main form - powerapps

Get all the details here

https://docs.microsoft.com/en-us/powerapps/maker/model-driven-apps/form-component-control

Hope it helps..

上一篇:SSM项目报错:NoSuchMethodException


下一篇:EF Core 搭建单侧环境