I have an old cuba 6 application an I try to display a table with records for a customer.
I have hundreds of records but the table displays only 46 rows and no number of pages even the scroll seems to exist (but it’s empty space).
Solved: I added a (generic) filter above.
Now it works.I don’t know why.
The problem is that if I want to display number of pages it shows only 50.
currencyLabel.setValue("rows number:" + " " + mycollectionDs.getItems().size());
Table component has a
rowCount element, which displays the number of rows and allows you to move between pages. To set the number of rows that will be displayed on the page, use the generic filter menu and click the Search button of the filter to refresh the table display.
I saw this option.
But how can I get the whole rows number programmatically if the page is set on 50?
mycollectionDs.getItems().size() returns 50?
To get the whole rows number in the table, you need to call the
((CollectionDatasource.SupportsPaging) mycollectionDs).getCount() function.