[sapui5] List binding remove application filter
Hi,
I've search sapui5 API can find the function to remove all existing filter from sapui5 List Binding.
Hence I need to find a workaround to reset the list binding (used in resetting search field).
We have no function yet, so we need to empty the filter array by manual assignment:
We have some more method to empty an array, you can find here.
p/s: Update on 02 Nov, 2017:
to remove the filters, you just need to pass an empty array to the function:
---V---
I've search sapui5 API can find the function to remove all existing filter from sapui5 List Binding.
Hence I need to find a workaround to reset the list binding (used in resetting search field).
We have no function yet, so we need to empty the filter array by manual assignment:
oListBinding.aApplicationFilters = [];oListBinding.sFilterParams = undefined;oListBinding.refresh();
We have some more method to empty an array, you can find here.
p/s: Update on 02 Nov, 2017:
to remove the filters, you just need to pass an empty array to the function:
oListBinding.filter([]);This worked in SAPUI5 1.44
---V---
Nhận xét
Đăng nhận xét