on 07-21-2010 3:34 PM
Dear all,
I have created a new Usage and want to distiguish between the standard usage name and my usage usage 'Zxxxxx" for the same component.
I need to be able to rtrive the usage name of the component in the methode: do_init_context of the view in the used component.
I was trying this code:
data: lr_cinfig type ref to cl_bsp_dlc_configuration2.
lr_config ?= me->configuration_descr.
But the attribute: component_usage of the class cl_bsp_dlc__configuration2 is procted and I can not access it.
Does anyone knows how to find it in another way?
Best regards
Ahmed Hadi
Hi Ahmed,
Use the below code in any controller class method,
DATA: lr_window TYPE REF TO cl_bsp_wd_window,
lv_name TYPE string.
lr_window = me->view_manager->get_window_controller( ).
lv_name = lr_window->get_component_usage_name( ).
Regards,
Arun Kumar
Edited by: Arun Kumar on Jul 22, 2010 5:17 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
7 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.