Table display all rows issue

Hello,

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).
Please advise!
-n

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());

Regards,
-n

Hello @neutrino,

The 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.

image

Regards,
Gleb

Hello Gleb,

I saw this option.
But how can I get the whole rows number programmatically if the page is set on 50?
Why mycollectionDs.getItems().size() returns 50?

Regards,
-n

Hi @neutrino,

To get the whole rows number in the table, you need to call the ((CollectionDatasource.SupportsPaging) mycollectionDs).getCount() function.

Regards,
Gleb

1 Like