添加过滤 条件函数:
modelLocator.ptoArrayCollection.filterFunction = filterProduct;
modelLocator.ptoArrayCollection.refresh();
private function filterProduct(item:Object):Boolean
{
if (item.sprint.releases.product.productId == productCB.selectedItem.productId)
return true;
else
return false;
}
取消过滤 :
modelLocator.ptoArrayCollection.filterFunction = null;
modelLocator.ptoArrayCollection.refresh();
添加过滤条件
本文介绍了一种在编程中实现数据过滤的方法。通过定义过滤函数filterProduct并将其应用到modelLocator.ptoArrayCollection上,可以筛选出特定的产品数据。当不再需要过滤时,可以通过设置filterFunction为null来取消过滤。
1009

被折叠的 条评论
为什么被折叠?



