cancel
Showing results for 
Search instead for 
Did you mean: 

Creating external window: Position, height, width

michael_umlauff
Explorer
0 Kudos

Hello,

does anyone of you know how to predefine the position, height and width when creating an external window from WD ABAP? I use the method IF_WD_WINDOW_MANAGER=>CREATE_EXTERNAL_WINDOW to open the external window. In the similar method IF_WD_WINDOW_MANAGER=>CREATE_POPUP_TO_CONFIRM there are some useful importing parameters like WINDOW_POSITION, WINDOW_WIDTH, WINDOW_HEIGHT I am missing in CREATE_EXTERNAL_WINDOW . I use the following code:


  data: lo_cmp_api type ref to if_wd_component,
          lo_window_manager type ref to if_wd_window_manager,
          lo_ext_win type ref to if_wd_window,
          lv_url type string.
  lv_url = [...]
  lo_cmp_api = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_cmp_api->get_window_manager( ).
  lo_ext_win = lo_window_manager->create_external_window(
    url = lv_url
    title = 'My Title' ).
  lo_ext_win->open( ).

Thanks a lot and best regards

Michael Umlauff

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

see

Regards, Heidi

Answers (1)

Answers (1)

michael_umlauff
Explorer
0 Kudos

Hello Heidi,

perfect - now I have found the solution:


[...]
  lo_ext_win->set_window_size(
    EXPORTING
      width = '1280'
      height = '1024' ).

Thanks a lot

Michael