cancel
Showing results for 
Search instead for 
Did you mean: 

Dynamic embedding of view from used component

Former Member
0 Kudos

Hi All,

There are many threads regarding the dynamic embedding of view from used component, and i tried doing as mentined in the threads, but some how i am nable to embedd the view.

Will appreciate any help in this regard.

I have a component A with View V_A. Which has viewui container element in it. Based on values selected by the user, i have to display the view from used components at runtime. As there are around 15 different used components i cannot statically embedd in my view ui container.

This is how i am using the methid.

lo_api_v_viewcont->do_dynamic_navigation(

source_window_name = 'W_MAIN' (Window from Component A)

source_vusage_name = 'V_MAIN_USAGE_1' ( Not sure on this...if this value is correct)

source_plug_name = 'TO_DYN_VIEW'

target_component_name = 'YWHR_012_VEH_ADVANCE' (Used component name)

target_view_name = 'V_MAIN' ( View from used component which has to be displayed)

target_plug_name = 'DEFAULT' (inbound plug of window of used component)

target_embedding_position = 'V_MAIN/VCU_VIEWCONT'). ( POsition where i have to embedd)

Are the above parameters correct?

I get an run time error "view usage v_main_usage_1"does not exist in window w_main of the component ya_main.

Regards,

Runal

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Instead of 'V_MAIN_USAGE_1' ,you use 'MAIN_VIEW_USAGE_1' as source_vusage_name .

Thanks and Regards,

Dhaya.G.

Edited by: Dhayalinie Ganesh on Feb 24, 2012 11:31 AM