on 01-13-2011 7:05 AM
whenever user click on enter on input field then cursor position or focus will be takes place at button
HI,
Thanks for u r support
Thanks&Reards,
praveen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi
create an attribute of type wdy_boolean say flag then
write the folowing code in onenter eventhandler
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_flag LIKE ls_context-flag.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* get single attribute
lo_el_context->set_attribute(
name = `FLAG`
value = abap_true ).
and following code in wddomodify
DATA lo_el_context TYPE REF TO if_wd_context_element.
DATA ls_context TYPE wd_this->element_context.
DATA lv_flag LIKE ls_context-flag.
* get element via lead selection
lo_el_context = wd_context->get_element( ).
* get single attribute
lo_el_context->get_attribute(
EXPORTING
name = `FLAG`
IMPORTING
value = lv_flag ).
if lv_flag = abap_true.
data: lr_elem type ref to if_wd_view_element.
lr_elem = view->get_element('BTN').
if lr_elem is bound.
view->request_focus_on_view_elem( lr_elem ).
endif.
* get single attribute
lo_el_context->set_attribute(
name = `FLAG`
value = abap_true ).
endif.
this will do...
thanks
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Praveen,
In WDDOMODIFYVIEW method write your code..
DATA: lr_elem TYPE REF TO if_wd_view_element.
lr_elem = view->get_element( 'ELEMENT' ).
view->request_focus_on_view_elem( lr_elem ).
ENDMETHOD.
for better idea go through this already discussed in this forum..
http://help.sap.com/saphelp_nw70ehp1/helpdata/en/2e/a9ed633634494da688855433e105da/frameset.htm
Thanks,
kris.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.