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?

@"Ashish Awasthi"@"aJohny"
J dev Version:11.1.2.4