Not able to see subgrid control when creating a new record in the form (model driven apps). It only shows up when editing the record. Please help
Thanks in advance.
Not able to see subgrid control when creating a new record in the form (model driven apps). It only shows up when editing the record. Please help
Thanks in advance.
I am also wishing this was possible.
The logic with saying it is not possible to relate entities before it is saved, doesn't add up because single options can be related when the new record is created.
Good day. Where can I read that's normal behavior. Thank you in advance
Workaround could be to create a PCF Control, and place the selected id's in a text field, then on save process the field (via Plugin) to associate the records.
Whilst you have never been able to populate a Subgrid until the record is created, the other day I did notice that the Subgrid container was no longer showing until after the record was created.
Hi Emids,
As explained, you cannot link entities without creating them.
A workaround will be to save the record using a onload script if the formtype = Create.
This will then allow user to add the link.
function OnLoad(executionContext){ var formContext = executionContext.getFormContext(); var formType = formContext.ui.getFormType(); if(formType == 1){ // u can add more condition like name should be filled etc formContext.data.entity.save(); } }
However, if for some reason user closes the record without linking anything - you will end up with a 'blank' record.
You can have a plugin/javascript to check if the record is linked with anything and then delete it if it is not - but then that can be decided based on requirements.
Thanks,
Prateek
Yes I understand, but what is the solution available to have multiselect with entity lookup. Is there a way to do that in powerapps or any work around. Please suggest
This is an out of the box feature.
You can not associate any record without saving it.
For eg: You have grid of "Entity B" on "Entity A" form, then you have to create "Entity A" record first then "Entity B" grid get visible.
Hi Mike,
Thanks for the reply.
My requirement is I need to have multiselect(while creating new record) by doing lookup with an entity/table. So I thought this subgrid control will help but it is not as you said. So please let me know how can I achieve this requirement.
Thanks,
Paniraj
Hi, that's normal behavior, you wont see the grid until you save the first time.
André Arnaud de Cal...
292,516
Super User 2025 Season 1
Martin Dráb
231,430
Most Valuable Professional
nmaenpaa
101,156