on 06-04-2008 10:49 PM
Hi,
I have one component and two diffenerent applications using the same component and same window.
At runtime, in the main view, I want to get the name of the application which was called. How can this be done?
Regards,
Reema.
You can get it via the Application API object. For instance in your Component Controller WDDOINIT:
DATA lo_api_componentcontroller TYPE REF TO if_wd_component.
lo_api_componentcontroller = wd_this->wd_get_api( ).
data lo_api_application type ref to IF_WD_APPLICATION.
lo_api_application = lo_api_componentcontroller->get_application( ).
data lo_application_info type ref to IF_WD_RR_APPLICATION.
lo_application_info = lo_api_application->get_application_info( ).
if lo_application_info->name is not INITIAL.
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 |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
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.