cancel
Showing results for 
Search instead for 
Did you mean: 

Focus on pop up

Former Member
0 Kudos

Hi All,

i have created a pop up with few text fields, labels and dropdown through programmatically.

how can i set focus, on any of the elements i created.

Thanks

Vimalraj

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

hi vimalraj......

you can use the method request_focus_view_elem in the interface if_wd_view and have the coding in the wddoinit part of the view that is bound to the popup.

---regards,

alex b justin

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Vimal,

You can use the Request_focus method of Interface if_wd_view_controller.

Consider the below example :

Im having the input field and its bind with attribute "Age". So consider the below code,

CALL METHOD l_api->request_focus
  EXPORTING
    context_element =  elem_node1
    attribute       = 'AGE'.

Thanks.