Clearing Data Control values - ADF Custom Java code
public void clearDataControl(){
DCBindingContainer bindings1 = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItBindings1 = bindings1.findIteratorBinding("IteratorName");
RowSetIterator iter = dcItBindings1.getRowSetIterator();
iter.reset();
Row[] rows = iter.getAllRowsInRange();
for (int r = 1; r < rows.length; r++){
if (rows[r] != null)
rows[r].remove();
}
}
DCBindingContainer bindings1 = (DCBindingContainer) BindingContext.getCurrent().getCurrentBindingsEntry();
DCIteratorBinding dcItBindings1 = bindings1.findIteratorBinding("IteratorName");
RowSetIterator iter = dcItBindings1.getRowSetIterator();
iter.reset();
Row[] rows = iter.getAllRowsInRange();
for (int r = 1; r < rows.length; r++){
if (rows[r] != null)
rows[r].remove();
}
}
No comments:
Post a Comment