JPAContainer isDirty flag

hi all,

is there a way to query a JPAContainer EntityItem that the contained entity is modified since last time refreshed?

i have a form over the entityitem and want to check it was modified by the user or not, so i can popup a confirm dialog.

i tried isDirty and isModified but both return false in all cases.
I also tried setWriteThrough(false), but it says “EntityProvider is not batchable”.

What is the workaround for this?

thanks
misu

is there wreally no solution to know that an object attached to a form has been changed by the user or not?

You can get rid of the “EntityProvider is not batchable” error by using JPAContainerFactory.makeBatchable(). Then try both the forms and the containers isModified() methods , I can’t remember which of those that worked…

JPAContainerFactory.makeBatchable() and form.isModified() together did the trick.

Thx!