Hello everybody,
I worked trough the cookbook for the floorplan manager. At the moment I have an application presenting two tabs. (I am working with the FPM OIF.) Now I am trying to realize the possibilities described under the headline "Changing the Tabbed Component Dynamically at Runtime" (page 74). I tried it again and again but it did not work.
Actual status:
I have two views implemented in the FPM OIF. This works fine.
In the first view I have added a button. In it's action method I have the following coding:
DATA: lo_fpm TYPE REF TO if_fpm, lo_event TYPE REF TO cl_fpm_event. data lv_tab_name TYPE string. lv_tab_name = 'new name'. lo_fpm = cl_fpm=>get_instance( ). *lo_event = cl_fpm_event=>create_by_id( 'CHANGE_TAB_NAME' ). CREATE OBJECT lo_event EXPORTING iv_event_id = 'CHANGE_TAB_NAME'. *lo_event->mo_event_data->set_value( iv_key = 'ID' ). lo_event->mo_event_data->set_value( iv_key = 'NAME' iv_value = lv_tab_name ). lo_fpm->raise_event( io_event = lo_event ).
In the component controllers method OVERRIDE_CONFIG_TABBED I implemented the following coding:
CASE io_tabbed->mo_event->mv_event_id. WHEN 'CHANGE_TAB_NAME'. DATA lv_name TYPE string. DATA lv_id TYPE string. * io_tabbed->mo_event->mo_event_data->get_value( EXPORTING iv_key = 'ID' IMPORTING ev_value = lv_id ). io_tabbed->mo_event->mo_event_data->get_value( EXPORTING iv_key = 'NAME' IMPORTING ev_value = lv_name ). io_tabbed->rename_tab( iv_tab_id = lv_id iv_new_name = lv_name ). ENDCASE.
I uncommented some lines because I hoped it will work then, but it does not. With the debugger I come to the onAction-method after pressing the button. As far as I see the event will be registered in the FPM event loop as well. The problem is, the override_config_tabbed method is never called. Setting a breakpoint to this method does never turn the application to the debugger.
Can anybody tell me what I did wrong, and how to correct it? I am looking forward for your answers because the whole SDN including the search did not help me.
Sinceresly,
Barbara