Checking Data Changes in ADF

Some times you  want to check if the data has been modified by the user or not. We can remember how easily we make this in forms builder using ":System.record_status" or :System.block_status" or :System.form_status".
But the ADF world is somehow different.

Just write this code





DCBindingContainer dc = (DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();  if (dc.getDataControl().isTransactionModified()) {

//commit transaction for example

dc.getDataControl().commitTransaction();       }   

Comments

Anonymous said…
This comment has been removed by a blog administrator.

Popular posts from this blog

Another user has changed the row with primary key oracle.jbo.Key[12 ].

Working With File Throgh WebUtill

Reading From File