cancel
Showing results for 
Search instead for 
Did you mean: 

How to build a Dynamic URL-ALV List

selvakumar_mohan
Active Participant
0 Kudos

Hi All,

I was trying to provide a hyperlink for column of ALV. i was able to bring up the hyperlink. I am trying to code into the onaction event.

on the click event i need to open up another web dynpro component in the new window(URL of the same will vary depending on the cell content).

Can you please help in understanding how i can make this happen.

Thanks,

Selvakumar M.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi, Use the following piece of code,

DATA : lv_url TYPE string.
 
  CALL METHOD cl_wd_utilities=>construct_wd_url
    EXPORTING
      application_name = 'COMPONENT NAME'
    IMPORTING
      out_absolute_url = lv_url.
 
  DATA lo_window_manager TYPE REF TO if_wd_window_manager.
  DATA lo_api_component  TYPE REF TO if_wd_component.
  DATA lo_window         TYPE REF TO if_wd_window.
 
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
 
  CALL METHOD lo_window_manager->create_external_window
    EXPORTING
      url    = lv_url
    RECEIVING
      window = lo_window.
  lo_window->open( ).
Regards, Radhika.

selvakumar_mohan
Active Participant
0 Kudos

Hi Radhika,

It worked.

Thanks,

Selvakumar M.

Answers (0)