I use two buttons with two standard "@Command"s:
@Command([NavigatePrevMain]) and
@Command([NavigateNextMain])
It works fine with the previous button (I can hit the back button many times till there are no documents in that direction, then I get an alert), but when I hit the next button till all documents are passed I’m kicked out of the application.
How can I control this problem?