Insert new line in VO, engaging, and then call vo.executeQuery () does not display the newly created line.

Hi guys

I use jdev 12.1.2.

I have a question about stale view object and entity data object.  My use case is: I have an af:table bound to data that I use to insert a new row in the database.  I create the line with a call from createWithParams, and everything works fine with it.  I call commit on the application module that contains the view object, and the data is correctly inserted in the database table.  Then, as part of my needs, I call vo.executeQuery () on the view object, however the newly inserted row is not present in the af: table or view object.  The line does not appear until I leave my application and return to it.  Once I do this, the line is in the object view and appears correctly in the table.

It is not enough that I need the view object to be aware of the new line (s) without having to restart the application.  Y at - it a setting I am missing in my display object?  I guess my entity object contains stale data, but I don't know how to refresh its data.  Thanks for reading.

Lance

Hello

you use a viewCriteria, so the value of this method of execution both (database and memory) in the Panel of viewCriteria

try it once

Thank you

Tags: Java

Similar Questions

Maybe you are looking for