Getting current record of data control from program

ADF By Aug 07, 2012 No Comments
By using the below code, we can get the current row from the data control.

BindingContext bindingctx = BindingContext.getCurrent();
BindingContainer bindings = bindingctx.getCurrentBindingsEntry(); 
DCBindingContainer bindingsImpl = (DCBindingContainer)bindings; 
DCIteratorBinding iter =  bindingsImpl.findIteratorBinding(<binding iterator>); 
Row currentRow=iter.getCurrentRow();

Where <binding iterator> is the iterator name which data control is binded to the page and holds the data

No Comments

Leave a comment

Hi, Welcome here.
And get notified everytime we publish a new blog post.