master-child- parent key not found
851178May 5 2011 — edited Dec 15 2011Hi all,
JDev Ver 11.1.1.3.0
isuue:
while saving the records i am getting constraint violated-parent key not found error
use case:
I am using master child relationship with two viewObjects, say book_master and bookchild.
In my page i used master as Form and detail as table.
I am creating new records in both master and detail, dbsequence is executed got master unique id, and i have assigned the newly created id in the detail table and filled all the fields,
While committing i am getting Constraint violated parent key not found error..
I think the master entity in must commit before child do..
How to solve this issue ? Give any idea ?
Thanks,
Gopinath