on 10-15-2009 11:53 AM
Hi all,
Within the WDDOMODIFYVIEW event there is a parameter called VIEW which provides certain functionality such as setting focus on certain field etc. I was just wondering if anyone could provide me with the code required to access this functionality outside of the WDDOMODIFYVIEW event.
Regards
Mart
Hi,
Eventhough you move it to global one, you cannot be able to use it effectively. Please check it out.
what exactly is yuor requirement.
Regards
Lekha.
Edited by: Lekha on Oct 15, 2009 4:46 PM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Well i dont really have a requirement I have manged to do it but thought there would be a better way. Currently I have created an attribute within my view called GD_VIEW(type ref to IF_WD_VIEW) and within event WDDOMODIFYVIEW I have put the following code
wd_this->GD_VIEW = view.
I can then access this anywhere using the following code
data: lv_v_elem type ref to if_wd_view_element.
lv_v_elem = wd_this->gd_view->get_element( 'PWORD' ).
if lv_v_elem is bound.
wd_this->gd_view->request_focus_on_view_elem( lv_v_elem ).
endif.
But just thought there would be a way without having to copy it within the WDDOMODIFYVIEW event. But then again maybe not!
Regards
Mart
User | Count |
---|---|
84 | |
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.