on 02-24-2012 8:59 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.