cancel
Showing results for 
Search instead for 
Did you mean: 

Do_dynamic_navigation problem!

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Dear Khaytaah

Please check the sequence of the methods call.

Try to play with other methods beside the WDDOINIT

Do understand what I mean, please check this post

[;

where they talk about the order of execution of method.

Kind Regards

/Ricardo Quintas

Answers (2)

Answers (2)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi,

I noticed that when I run the do_dynamic_navigation a second time, the wddoinit( ) from the embedded component is not called.

Lukas_Weigelt
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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