on 09-13-2010 9:43 AM
Hi all,
How can i get the current VIEW name in a webdynpro application ?
Best regards
Hi,
We can get the current view name using view controller. Here is some sample code.
DATA lo_api TYPE REF TO if_wd_view_controller.
DATA lv_str TYPE string.
lo_api = wd_this->wd_get_api( ).
lv_str = lo_api->if_wd_controller~name.
Regards,
Manogna
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
try something like this:
DATA lo_controller TYPE REF TO if_wd_view_controller.
DATA lo_view_info TYPE REF TO if_wd_rr_view.
lo_controller = wd_this->wd_get_api( ).
* get view name from controller api via view info
lo_view_info = lo_controller_api->get_view_info( ).
IF lo_view_info IS BOUND.
rv_view_name = lo_view_info->get_name( ).
ENDIF.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.