Refresh a master/detail form when an insert/update occurs
Dear all,
I have faced this problem before but this time Iam stuck. I use Oracle ADF with Jdeveloper 10.1.3.4 and EJBs for my datacontrol. I have two entities which have a master/ detail relationship and display them in a page.
At some point the user can navigate to another page, add a record in the detail entity and navigate back to the master/ detail form. I want the new record to be depicted in the master/ detail page.
The pagedef file contains a methodIterator for the master table and an accessorIterator for the details table in the <executables> sections.
In the pagedef file I have also added an "invokeAction" pointing to the method that populates the maste/detail tables with the Refresh property set to 'prepareModel'. I have also set a Refresh condition. (The "invokeAction" is set first in the order of the <executables> section of the pagedef file).
However when I navigate back to the master/detail form (after adding a detail record) the new detail record is not depicted (even though it is inserted in the database). Moreover, when clicking on various rows of the master table I get a JBO-35007 error.
I have read the Oracle ADF tutorials, blogs and even this forum and everybody proposes the use of the 'invokeAction' in the pagedefinition in order to refresh the contents of a table, in case the underlying database table contents are modified. In my case it has worked only in the cases where the content of a single entity (table) are modified and displayed in a form. In the case of a master/detail relationship it has worked only by means of using code.
But in this case it does not work at all. This case differs in that my master/ detail entities are actually database views. I have altered the EJB entity code so that I give a master/ detail relationship to them. I don't think that this really matters because it never worked to me even using actual tables for entities.
Has any one any clue of how I could overcome the problem