cancel
Showing results for 
Search instead for 
Did you mean: 

How to create Plugs dynamically.

Former Member
0 Kudos

Hi,

Can youplease tell me how to create plugs dynamically. If there is a doc or API then would be of good help.

Regards

Piyush

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

yes it is possible we have a method 'DO_DYNAMIC_NAVIGATION' in IF_WD_VIEW_CONTROLLER.

check this code.

data:
  l_view_controller type ref to if_wd_view_controller,
  l_nav_services type ref to if_wd_navigation_services.

 l_view_controller = wd_this->wd_get_api( ).
  l_nav_services ?= l_view_controller.

  l_nav_services->do_dynamic_navigation(
      source_window_name        = 'YH1108_APP11'
      source_vusage_name        = 'MAIN_USAGE_1'
      source_plug_name          =  'GOTO_TEST'
*      PLUG_PARAMETERS           = PLUG_PARAMETERS
*      TARGET_COMPONENT_NAME     = TARGET_COMPONENT_NAME
*      TARGET_COMPONENT_USAGE    = TARGET_COMPONENT_USAGE
      target_view_name          = l_view_name
      target_plug_name          = 'IN'
*      TARGET_EMBEDDING_POSITION =  'MAIN/CONTENT'
         ).

also check this standard program WDR_TEST_UI_ELEMENTS and check the view MAIN.

Thanks

Suman.

Former Member
0 Kudos

This is regarding dynamic navigation

I want to know how to create PLUGS dynamically.

Former Member
0 Kudos

Hi,

When i am doing dynamic navigation, my requirement is to call the other Window (TARGET ) more than once.

So i am dynamically calling the window in a loop. But the problem is that, the window is called and displayed only for the last iteration.

I thought that we need to navigate back to the source window and call the target window again. This Will create a cycle and show all window. Just a thought.

Thats the reason i need to create dynamic plug.

If there is a solution to this, it would be really helpful.

Regards

Piyush