cancel
Showing results for 
Search instead for 
Did you mean: 

How to move from one UI Element to Another UI Element on pressing TAB

Former Member
0 Kudos

Hai All,

I am trying to navigate the cursor control from one Ui Element To another Ui Element On Choosing TAB Key.

Please Provide Any related Documents and suuggetions for my requirement.

Thanks,

Sreevathsava.G

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

You dont need to do anything for this. This is taken care by the framework. The control automatically moves from one UI element to another when you press tab key. However if you still want to set the focus at a particular UI element you can use the method FOCUS. This method is part of every UI element class.

Former Member
0 Kudos

hai pooja ,

yes tab key is working with out any code,

but problem is from last UI element it goes to the URL and then it is moving to menu ...................

after completion of all it comes again to view .

so please tell me how to restrcit that one.

i.e how to set how to move from last UI Element To First UI Element.

Thanks,

Sreevathsava.G

Former Member
0 Kudos

Hi,

Please check out this link -

Regards,

Lekha.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can't control this. This is is how the browser works. After tabing through all elements in the its content area, it moves to the elements of the browser itself. This is necessary for accessibility.

There are no server events triggered upon tab, so there is no way to intercept the last tab on the WD page and redirect the focus.

Former Member
0 Kudos

hai lekha,

the URL what u send is displaying threads in Web Dynpro Java,

but i need help in ABAP.

Thanks,

Sreevathsava.G

Former Member
0 Kudos

Hi,

Please check out this link -

-WDA link

The above is related to WDA . Please check it.

Regards,

Lekha.

Former Member
0 Kudos

Hi,

The usual moving of cursor to the next element in the UI with TAB access is automatic and supported by framework and for setting the focus on a particular element can be controlled by writing below code in WDDOMODIFYVIEW hook method.

data: lv_v_elem type ref to if_wd_view_element.
          lv_v_elem = view->get_element( 'INPUSERID' ).
 
          if lv_v_elem is bound. 
            view->request_focus_on_view_elem( lv_v_elem ).
          endif.

Regards,

Manne.