107
Views
3
Comments
How to create/update new record to child entity should associated with parent entity
Question

How to create/update new record to child entity should associated with parent entity particular id,

In one to many relation-ship parent entity identifier updating as "0", can not able create child records. 




Need to display records only with matching parent id , Also need to create/edit child entity record.

2023-04-19 18-38-51
Bas de Jong

Hi Robert, 

As i can see from your screenshot, you have joined the conferenceds with the sessionlist, however i believe that your join condition is not correct. You should do Conference "Only With" Sessions. 

To create Sessions which are connected to a Conference, you need to create some logic to supply the Id when creating a new session list. 

UserImage.jpg
Robert Johnston

Hello bas,

How to pass parent input parameter value to child entity identifier attribute.


2021-07-14 09-27-33
Luís Cardoso

Robert Johnston wrote:

Hello bas,

How to pass parent input parameter value to child entity identifier attribute.


Hello Robert,


You need to create first the parent record on DB (example GetConference) and after assignt that value to Session list (child) record. Please see this example:


Hope it helps!

BR,

Luis

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.