how to know if a row is being created or modified?
754530Mar 24 2010 — edited Mar 25 2010Hi community,
today I have the issue of trying to distinguish programatically and before commit if an existing row is being modified or a new one is being created. In my use case I have a single .jspx which mantains a form that deals with both creation and edition. This page has a commandButton component that is bound to a managed bean method that prodeed with the commit.
This requirement comes up because I need to call a PL/SQL in one case and a different one in the other one. Does oracle.jbo.ViewObject have a way to know the status of its cache or is there another way to figure this out?
Thanks so much in advance for the time and dedication.
Regards,
Alberto