You are on page 1of 2

@Override protected ViewRowSetImpl createViewLinkAccessorRS(AssociationDefImpl associationDefImpl, ViewObjectImpl viewObjectImpl, Row row, Object[] object) { ViewRowSetImpl viewRowSetImpl = super.

createViewLinkAccessorRS(associationDefImpl, viewObjectImpl, row, object); System.out.println(":bndVarFirstName =" + getbndVarFirstName()); String firstName = getbndVarFirstName(); if (firstName != null && firstName.trim().length() > 0) { ViewCriteriaManager vcm = viewObjectImpl.getViewCriteriaManager(); ViewCriteria vc = vcm.getViewCriteria("EmployeesViewCriteria"); VariableValueManager vvm = vc.ensureVariableManager(); vvm.setVariableValue("bndVarFirstName", getbndVarFirstName()); viewObjectImpl.applyViewCriteria(vc); } else {

viewObjectImpl.removeApplyViewCriteriaName("EmployeesViewCriter ia"); } viewObjectImpl.setSortBy("FirstName, LastName");

return viewRowSetImpl; /*

protected ViewRowSetImpl createViewLinkAccessorRS(AssociationDefImpl assocDef, ViewObjectImpl accessorVO, Row masterRow, Object[] values) { ViewRowSetImpl v = super.createViewLinkAccessorRS(assocDef, accessorVO, masterRow, values);

Number busuId = (Number) ((ViewRowImpl)masterRow).getViewObject().getNamedWhereClauseParam("p BusuId"); Number busuId = (Number) (ViewRowImpl)masterRow.getAttribute("AttributeName"); accessorVO.setNamedWhereClauseParam("pBusuId", busuId); v.setNamedWhereClauseParam("pBusuId", busuId);

return v; }

*/ }