08-09-2018 10:58 AM
I want to get a count from all items in a filter using the javascript API. Is it possible?
08-10-2018 07:51 AM
I have found a way to do it manipulating the DOM object
var body = document.querySelector("[data-role=\"filterbody\"] table tbody");
document.getElementById('qtdItens').innerText = (body.rows.length -1);
(minus 1 because it counts the header row)
08-09-2018 12:04 PM
Luiz,
The only thing that the API provides is a list of 'SelectedItems'. You may be able to select all the rows in the filter and use the length property to get a count of the 'SelectedItems'.
-- Screen.CurrentView.Filters("MyFilter").length
08-09-2018 12:40 PM
Thanks Daniel, but i have to do this automatically, so the user interaction is not an option...
08-10-2018 07:51 AM
I have found a way to do it manipulating the DOM object
var body = document.querySelector("[data-role=\"filterbody\"] table tbody");
document.getElementById('qtdItens').innerText = (body.rows.length -1);
(minus 1 because it counts the header row)
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.