Friday, August 6, 2010

Programmatically Setting Filter for ADF Table

You can set the criteria programmatically to filter data in ADF table by:

DCBindingContainer bc =
(DCBindingContainer)context.getApplication().evaluateExpressionGet(facesContext,
"#{bindings}",
DCBindingContainer.class);
if (bc != null){
DCIteratorBinding ib = (DCIteratorBinding)bc.getIterBindings().get(p_binding);
if (ib != null)
ViewObject vo = ib.getViewObject();
if (vo != null)
vo.setWhereClause('your clause');
}




No comments:

Post a Comment