Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Parent Key Not Found Problem

Zaid MirzaJul 8 2015 — edited Jul 8 2015

Scenario is,

I have a master Detail Form, Master and Detail VO are View linked. but im facing error Parent key not found while committing the DATA.

To Investigate,

I Override doDML method in both Master and Detail Entities

in doDML method I checked Posted Value of attribute to see what has been posted to DB and What is in EO Cache

| | protected void doDML(int i, TransactionEvent transactionEvent) { |
| | Object postedEmployeeId = getPostedAttribute((DOCID)); |
| | Object employeeId = this.getAttribute(DOCID); |
| | System.out.println("Posted Value DOC ID Master "+postedEmployeeId); |
| | System.out.println("Re post Value DOC ID Master "+employeeId); |
| | super.doDML(i, transactionEvent); |
| | } |

Model Layer is working fine as I checked by running Model Tester.

committed through Model Tester

I receive following output

Posted Value DOC ID Master RCV091507010001

Re post Value DOC ID Master RCV091507010001

Posted Value DOC ID Detail RCV091507010001

Re post Value DOC ID Detail RCV091507010001

its mean Master EO doDML method calling first (normal behavior)

but when I try to to commit data through page then Detail doDML method call first ( strange) i think there is a problem on UI components but I dont know what?

pastedImage_0.png

@"Ashish Awasthi"@"aJohny"

J dev Version:11.1.2.4

This post has been answered by Timo Hahn on Jul 8 2015
Jump to Answer
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 5 2015
Added on Jul 8 2015
17 comments
490 views