There is one scenario in which the Entity data is shown in Subgrid which is inside the Quick View form.
On click of Custom New button, there is a requirement to populate the Parent record in lookup of Quick create on which this quick view is present.
So, on click of custom new button I am passing the parameters to quick create form in which the parent record reference is set on lookup field on quick create form.
I am using formContext.parentFormContext.data.entity.getEntityReference() to get the parent record reference. But I was not able to find any documentation regarding parentFormContext. Is it supported code or unsupported. Can anybody help me with that.
Code
Attributes in Primary Control