created a master detail page(jspx). Master in form and detail in table layout.
set dbsequence for primary keys. Create buttons for master and detail work fine.
Changed the page to page fragment and called the task flow from another page as region.
Now when I try to create record in detail it gives below error message.
'Detail entity with row key null cannot find or invalidate its owning entity.'
Also it erases all the data that was entered in master record.
I tried adding the below code in the viewrowimpl. The error is gone but
all the master data is erased when I click the detail create button.
@Override
public void setNewRowState(byte b) {
if (b != Row.STATUS_INITIALIZED || getNewRowState() != Row.STATUS_NEW)
{
super.setNewRowState(b);
}
}
why is it behaving differently when I use page fragment and use it as region ??
I am using jdev 11.1.1.5
suggestions please...
Edited by: Avinash on Sep 29, 2011 8:52 AM
Edited by: Avinash on Sep 29, 2011 8:55 AM