Iterate through rows of a large paginated TreeTable

Hello,

I am using a Treetable filled through CollectionLoader<> and CollectionContainer<>.

I am trying to iterate through the entities (rows) of the paginated TreeTable to perform different actions.

One is i.e. to perform actions in other tables depending on entity-values in the row.
Another is to jump to a row in the table, anywhere in the resultset, probably not at the current page.

But the CollectionContainer.getItems() gives me only a list of entities of the current page.

Is there a way to get the list in complete for the whole result set?
Or to iterate through the whole result set?

Or do I have to use a different Table-Object to do things like that?

Regards
Manfred

Hi,
You could inject CollectionContainer and CollectionLoader associated with it, to screen controller, and use loader’s methods. Example:

    @Inject
    private CollectionContainer<Card> cardsDc;
    @Inject
    private CollectionLoader<Card> cardsDl;

// ...

        cardsDl.setFirstResult(cardsDl.getFirstResult() + 50);
        cardsDl.load();
        for (Card item : cardsDc.getItems()) {
            // ...
        }

Hi,
thanks a lot.
I think that could fix my problem.

Regards Manfred