添加过滤 条件函数:
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();