on 07-25-2014 1:20 PM
Hello,
Is there any possibility to count my items in my table after filtering?
That works for me
table.getBinding().getLength();
but not in combination with filtering.
Thanks for your help.
Hi Alexander,
You can use this code:
$
.ajax({
url : "/url/Set/$count?$filter= Status eq 'test'& $select = aKey",
success : function(data) {
numberOfRows = data;
console.log(numberOfRows + ' rows');
}
});
Works fine for me
Kind regards,
RW
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Alexander,
you are using filter right?
so get the length of the filtered list.
Check the below code for reference.
var binding = oTable.getBinding("items"); | ||||
binding.filter(aFilters); | ||||
var len = binding.filter(aFilters); | ||||
alert(len.getLength()); |
Regards,
Madhumahesh.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.