DataProvider lacks a method to get Nth item. The implementation should be quite straightforward, something like:
public T getItemAt(int rowIndex) {
Query<T,SerializablePredicate<T>> query = new Query<T,SerializablePredicate<T>>(rowIndex,1,null,null,null);
Stream<T> result = dataProvider.fetch((Query<T, SerializablePredicate<T>>) query);
T myBean = result.findFirst().get();
return myBean;
}
Is the getItemAt supposed to be the index of an item with applied sorting and filtering from a component? If yes, then please upgrade to 8.2.0.alpha2 and use component.getDataCommunicator().fetchItemsWithRange(wantedIndex, 1). This will construct the correct query the same way as it's used in the component.
Hello there!
It looks like this issue hasn't progressed lately. There are so many issues that we just can't deal them all within a reasonable timeframe.
There are a couple of things you could help to get things rolling on this issue (this is an automated message, so expect that some of these are already in use):
Thanks again for your contributions! Even though we haven't been able to get this issue fixed, we hope you to report your findings and enhancement ideas in the future too!
Most helpful comment
Is the getItemAt supposed to be the index of an item with applied sorting and filtering from a component? If yes, then please upgrade to
8.2.0.alpha2and usecomponent.getDataCommunicator().fetchItemsWithRange(wantedIndex, 1). This will construct the correct query the same way as it's used in the component.