on 04-23-2012 9:46 AM
Hi Friends,
My requirement : When Web Dynpro application is executed, pointer should be placed in Input Field UI element automatically. Kinldy can some one help me out regarding this.
Regards,
sankar
Hi,
Write the below code in WDDOMODIFYVIEW method.
DATA:
lo_node TYPE REF TO if_wd_context_node,
lo_element TYPE REF TO if_wd_context_element,
lo_view_contr TYPE REF TO if_wd_view_controller.
lo_node = wd_context->get_child_node( name = wd_this->wdctx_att1 ).
lo_element = lo_node->get_element( ).
if first_time = abap_true.
lo_view_contr = wd_this->wd_get_api( ).
lo_view_contr->request_focus( exporting context_element = lo_element
attribute = 'ATT1' ). " here att1 is the attribute name
endif.
Hope this helps u.,
Thanks & Regards,
Kiran.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
let say you created an attribute ATTR1 in context ( of any type ), read that attribute in WDDOMODIFY view using code wizard , then use the above method request_focus of view controller by passing context element and attribute name.
Revert back for further clarifications.,
Edited:
Hi.,
Ley say you created an input field in view and binded the value of input Field to ATTR1 in context, then use the above mentioned code. no need to bind to any other property. jus do normal binding of value of input field.
Thanks & Regards,
Kiran.
User | Count |
---|---|
93 | |
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.