cancel
Showing results for 
Search instead for 
Did you mean: 

Page up / Top of page

Former Member
0 Kudos

Hi there,

is there a possibility to scroll up a page.

For example you scrolled down, and you want to have a link "go to top".

If you click on it, it should move up.

In html it would be an anchor. But how do you solve it in web dynpro?

regards

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Sebastian,

the request_focus works fine to scroll to the top of the page (you define for example a link_to_action without a text and the width zero, it is necessary to register a dummy action on this link) but it do not work fine for an UI Element for example in the middle of the page.

If you request the focus to on element already displayed you have no effect.

If you request the focus to on element below the current screen the page scrolls down to the focused element and you see it at the end of the page, not at the top.

Not really satisfying.

Regards, Andreas

0 Kudos

Hello, Andreas

We have the exact same problem, too!

Dis you solve it?

Regards. Satsuki.

Former Member
0 Kudos

Hi,

Please try method REQUEST_FOCUS_ON_VIEW_ELEM of interface IF_WD_VIEW, this method have two parameters, one for view element and second is for context_element. So if you want it to scroll to somewhere in the table then pass that element to this method with table ui element.

Please also try with method SCROLL_INTO_VIEW of interface IF_WD_VIEW.

Thanks,

Rahul

Edited by: Rahul Yadav on May 28, 2009 5:36 AM

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Sebastian,

Try using the methods REQUEST_FOCUS and REQUEST_FOCUS_ON_ACTION of the Interface IF_WD_VIEW_CONTROLLER.

Hope it helps.

Regards,

Radhika.