import oracle.adf.model.binding.DCBindingContainer;
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCIteratorBinding;
// Get the Iterator
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding unitVOIterator =
bindings.findIteratorBinding("unitViewROVOIterator");
RowSetIterator unitVORowSetIterator =
unitVOIterator.getRowSetIterator();
// Set the row
Key key = new Key(new Object[] { unit });
Row[] row = unitVORowSetIterator.findByKey(key, 1);// second parameter - No of Parameters to return
unitVORowSetIterator.setCurrentRow(row[0]);
unitViewROVORowImpl ccRow =
(unitViewROVORowImpl)unitVORowSetIterator.getCurrentRow();
import oracle.adf.model.BindingContext;
import oracle.adf.model.binding.DCIteratorBinding;
// Get the Iterator
DCBindingContainer bindings =
(DCBindingContainer)BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding unitVOIterator =
bindings.findIteratorBinding("unitViewROVOIterator");
RowSetIterator unitVORowSetIterator =
unitVOIterator.getRowSetIterator();
// Set the row
Key key = new Key(new Object[] { unit });
Row[] row = unitVORowSetIterator.findByKey(key, 1);// second parameter - No of Parameters to return
unitVORowSetIterator.setCurrentRow(row[0]);
unitViewROVORowImpl ccRow =
(unitViewROVORowImpl)unitVORowSetIterator.getCurrentRow();
No comments:
Post a Comment