Home » ADF » How to check whether ADF table row is modified or not.
How to check whether ADF table row is modified or not.

How to check whether ADF table row is modified or not.

Sometimes we need to know whether any row of ADF table is modified or not using managed bean. Here’s a quick solution to find whether ADF table rows are modified or not.

 

There is a method in oracle.jbo.Transaction class called isDirty()  used to find row is modified or not.

BindingContext bindingctx=BindingContext.getCurrent();

BindingContainer binding=bindingctx.getCurrentBindingsEntry();

DCBindingContainer bindingsImpl = (DCBindingContainer) binding;

DCIteratorBinding dciter = bindingsImpl.findIteratorBinding(“iterName”);

ViewObject vo=dciter.getViewObject();

boolean dirty=vo.getApplicationModule().getTransaction().isDirty();

iterName  is the Iterator name of ADF table find in page definition file. Boolean dirty will return true if table is modified.

About Manish Pandey

Manish Pandey is a Senior Developer with more than 3 years of experience in JAVA Programming. Currently enhancing skills in ADF.

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>