Hello,
I have my WD component which has MAIN_VIEW. This one embeds PERS_DATA_VIEW and this one has a ViewContainerUIelement VIEW_AUTH, where I must embed another WD component as a subapplication. I must do this dynamically with this code:
* Set dynamically the next component:
DATA: target_view_name TYPE string,
target_component_name TYPE string,
source_plug_name TYPE string,
api_main TYPE REF TO if_wd_view_controller.
target_component_name = 'ZTEST'.
target_view_name = 'ZTEST'.
source_plug_name = 'TO_CALLED_COMPONENT'.
api_main = wd_this->wd_get_api( ).
TRY.
api_main->do_dynamic_navigation(
source_window_name = 'MAIN'
source_vusage_name = 'PERS_DATA_VIEW_USAGE_3'
source_plug_name = source_plug_name
target_component_name = target_component_name
target_view_name = target_view_name
target_plug_name = 'DEFAULT'
target_embedding_position = 'PERS_DATA_VIEW/VIEW_AUTH').
CATCH cx_wd_runtime_repository .
RAISE EXCEPTION TYPE cx_wdr_rt_exception.
ENDTRY.
There are more views in the main WD component and all of them are displayed in window MAIN. Navigation is calling the views depending on the pushbutton (forewards or backwards).
All this works, since I can see the component and the subcomponent in my browser. The problem is that the object in MAIN_VIEW (a road map) is gone (at runtime) and the functionality behind the pushbuttons doesn´t answer any more. When the flow comes to PERS_DATA_VIEW no pushbutton does anything.
The question is why.
Thanks for your help.