on 06-21-2010 7:15 AM
Hi all,
Thx in Advance...
In my Login page,After Login Fails i redirect to login page with clear the input field values...
After clear the input entry i want to set my cursor in ID input field...How can i do this???
Any related link is there?????
data: lr_view type ref to if_wd_view_controller.
data: lr_element type ref to if_wd_context_element.
data: lr_node type ref to if_wd_context_node.
lr_node = wd_context->get_child_node( '<node_name'> ).
lr_element = lr_node->get_element( ).
lr_view = wd_this->wd_get_api( ).
lr_view->REQUEST_FOCUS( context_element = lr_element attribute ='<attribute_name>' ).
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Chandramohan,
Place the Piece of code in the Modify View method
**** method to set focus
data: lr_element type ref to if_wd_view_element. " Reference for view Elements
CALL METHOD VIEW->GET_ELEMENT
EXPORTING
ID = 'BTN_BACK' " Pass the ID of the User name UI element
RECEIVING
ELEMENT = lr_element.
CALL METHOD VIEW->REQUEST_FOCUS_ON_VIEW_ELEM
EXPORTING
VIEW_ELEMENT = lr_element.
Regards
Chinnaiya P
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.