on 05-22-2012 8:28 AM
hii ,
i want to get cursor in input field by default after excuting the wdb application ?
Hi...thanks for all i got it
thanks a lot...
i got problem with id parameter ..
i resolved it ....
Thanks And Regards ..
Lokesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Lokeswar,
From the view, get the element, and use the request_focus_on_view_elem method for that
element_type ?= view->get_element( 'ELEMENT_NAME' ).
element_container->view->request_focus_on_view_elem( element_type ).
Best regards,
Rohit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
In the do modify method, i have to set focus on some UI element by default.
I will use like this.
data: lr_root_container type ref to CL_WD_TRANSPARENT_CONTAINER,
lr_group_link TYPE REF TO cl_wd_group.
if first_time = 'X'.
* update view data
lr_root_container ?= view->get_element( 'ROOTUIELEMENTCONTAINER' ).
"lr_root_container->focus( ).
lr_group_link ?= view->get_element( 'GROUP_LINKS' ).
lr_root_container->view->request_focus_on_view_elem( lr_group_link ).
endif.
As you have a input element use that in place of cl_wd_group.
Best regards,
Rohit
Hi,
In MODIFYVIEW, do the following.
DATA lo_element TYPE REF TO IF_WD_VIEW_ELEMENT.
if first_time eq abap_true.
CALL METHOD view->get_element
EXPORTING
id = 'INPUT_FIELD'
receiving
element = lo_element.
IF lo_element IS NOT INITIAL.
CALL METHOD view->request_focus_on_view_elem
EXPORTING
view_element = lo_element.
ENDIF.
endif.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.