cancel
Showing results for 
Search instead for 
Did you mean: 

Scroll the screen at the top of the page

Former Member
0 Kudos

Hi all,

I have a screen.in that scrren i having some mandatory fields.when we go down and wan tot go next screen and mandatory fields are initial.then it shows eror messages.

Now my query is that i want if any error message comes out then screen will automatically scrolled top of the page.

Suggess how is it posible.

Points will be sured max.

Thanks

Sanket sethi

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

set in wddomodify view an attribute wd_this->m_view = view

(add on the attributes tab in se80)

and where you raise the message, you have your attribute name and your element,

you can call the method: wd_this->m_view->request_focus( context_element = element

attribute = 'name' ).

grtz,

Koen

Former Member
0 Kudos

hi sanket.......

here is the solution......

consider you are having 2 input fields one at top and the other at bottom.

you misss out to fill the top field.

so when you come down it throws an error and does not move to the next screen.

you wan to show the top of page now:

all the fields you enterd might be stored in an attribute.

so try calling the same view again or refresh it and set the attributes to the old value.

---regards,

alex b justin