Skip to Content
Former Member
Jun 21, 2016 at 06:24 PM

Scroll back a table to the top



This seems quite simple but I'm unable to make it work.

I have a view where a table is displayed in a SAPUI5 application where I navigate with the routing mechanism defined in manifest.json.

I navigate from this view to a detail view and then navigate back with the browser's back button (it is not a button inside the application).

My problem comes when I scroll down in the page and come back. The scroll position is maintained so the view mantains the scroll position and doesn't go back to the top when I navigate back.

I'm using a sap.m.Page and in the latest API reference I can see the scrollTo(y, time) method in it but it doesn't seem to work for me. Maybe because the back is clicked in the browser? Anyone else has faced this kind of issue?

Thank you very much for you time in advance.