使用以下方法可以过滤VO对象中符合条件的row,可在service/backingbean中使用
1.在service中的使用方法
//获取view
ViewObjectImpl vo = getVO();
//使用指定的字段进行过滤
Row[] filteredRows = vo.getFilteredRows("AttributeName", "AttributeValue");
2.在backingbean中使用
DCIteratorBinding iter =
ADFs.findIterator("VOIterator");
Row[] _rows=iter.getViewObject().getFilteredRows(key, value);
这方法应该只能过滤已经加载好到iterator中的row.......
如果想实时查数据库估计还是得用jdbc........
没有评论 :
发表评论