on 09-21-2011 11:35 AM
Hi,
I have one view with a dropdown element.
When I select a field in the dropdown list a view of another component is displayed below.
It all works well but when I try to select another flied the view continues the same and does not change.
How can I force it to change?
Regards
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Dear Khaytaah
Have you tried changing the "lifetime" property of the view and see if it works ?
Check these links as well, maybe they could give you some hints:
[http://wiki.sdn.sap.com/wiki/display/WDABAP/ControllersinWebDynproforABAP]
[http://help.sap.com/saphelp_nw70/helpdata/en/2a/d526a78cc0184c8bd81e301b164a77/content.htm]
Kind Regards
/Ricardo Quintas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Please post the code of your event which is fired when you select something from the drop-down box. Have you debugged whether the event is fired EACH TIME you select something from the drop-down box?
Firing the Empty View Plug in between navigation changes might help but not sure; let's have a look at your coding.
regards, Lukas
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The event is fired, only the view does not change.
I'm trying to see the same view only with a different configuration.
My code:
data lo_cmp_usage type ref to if_wd_component_usage.
lo_cmp_usage = wd_this->wd_cpuse_iv_common( ).
if lo_cmp_usage->has_active_component( ) is initial.
lo_cmp_usage->create_component( lv_wda_component ). "Dynamic wda component name.
else.
lo_cmp_usage->delete_component( ).
lo_cmp_usage->create_component( lv_wda_component ). "Dynamic wda component name.
endif.
data lr_api_view type ref to if_wd_view_controller.
lr_api_view = wd_this->wd_get_api( ).
lr_api_view->do_dynamic_navigation(
source_window_name = 'W_APP' "{this is my window name }
source_vusage_name = 'V_MAIN_USAGE_0' "{this one is MAIN--"}
source_plug_name = 'OUT_PLUG1' "{this plug name can be generated dynamically }
target_component_name = 'ZDYN_CON_EU'
target_component_usage = 'DYN_EU'
target_view_name = 'IV_COMMON' "{the view i want to embed}
target_plug_name = 'DEFAULT'
target_embedding_position = 'V_MAIN/VCO' ).
Regards
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
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.