cancel
Showing results for 
Search instead for 
Did you mean: 

How to get Inteface View Name of used component to prepare Dynamic navigation

Former Member
0 Kudos

Hello Experts,

Here is one thing i am not able to find out

1. I have Created Dynamic component usage in my main component 'ZEP_ENTRY_POINT'.

2. i will get the component name by application parameter to  (wd_comp_controller->component_name). 

here is bit of my code to prepare dynamic navigation,.

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  lo_component_usage = wd_comp_controller->cmp_usage_group->get_component_usage(
                                                    name = wd_comp_controller->zwd_usage_name ).

  IF lo_component_usage->has_active_component( ) IS INITIAL.
    lo_component_usage->create_component( ).
  ENDIF.

---------------------------------------------------------------------------------------------------------------------------for getting interface controller dynamically

  DATA:lr_int_contr TYPE REF TO object.
  DATA:  lr_data TYPE REF TO data.

  FIELD-SYMBOLS:<lr_interface> TYPE ANY.


  lv_component_intrf = wd_comp_controller->component_name.

  REPLACE FIRST OCCURRENCE OF 'Z' IN lv_component_intrf WITH 'ZIWCI_'.
  CREATE DATA lr_data TYPE REF TO (lv_component_intrf) .

  ASSIGN lr_data->* TO <lr_interface>.

    lr_int_contr = lo_component_usage->get_interface_controller( ).

  <lr_interface> ?= lr_int_contr

----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

  lr_view_controller_api->prepare_dynamic_navigation( 

                source_window_name          = 'ZEP_ENTRY_POINT'
                source_vusage_name          = 'MAIN_USAGE_0'
                source_plug_name            = 'TO_V1'
                target_component_name       = wd_comp_controller->component_name
                target_component_usage      = wd_comp_controller->zwd_usage_name
                target_view_name            = 'W_SO_MAIN'      ----------------------->  How to get this .
                target_plug_name            = 'DEFAULT'
                target_embedding_position   = 'MAIN/VC1' ).

   

    wd_this->fire_to_v1_plg(  ).

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

      everything is fine with static target_view_name i am able to populate dynamically usage component.

Problem is ---------

1. how would I get the name of interface view of used component at run time.

2. how to set the values to application parameter :

  in  METHOD handledefault of used component window.

  also cant see the same method in instance of object  

             lr_int_contr = lo_component_usage->get_interface_controller( ).

I tried much but didn't able to resolved this.

ur Quick response is very precious to me to get it resolved.

Thanks

Jagdish 

Accepted Solutions (0)

Answers (1)

Answers (1)

chengalarayulu
Active Contributor
0 Kudos

Hi Jagadish


Window name is the InterfaceView name.. get the window name and substitute.