Thursday 21 March 2013

WDA - code to call the Window in browser or as popup window

*To call window in broser 
*Call Window
  lo_api_component  = wd_comp_controller->wd_get_api( ).
  lo_window_manager = lo_api_component->get_window_manager( ).
  lo_window         = lo_window_manager->create_window(
                      WINDOW_NAME          = 'PRINT_ADOBE'
                                           ).
  lo_window->set_window_size(
                        height = '100% '
                        width  = '100%' ).

  lo_window->open( ).


*To call window as popup window
    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( ).
  lo_window         = lo_window_manager->create_window(
                     window_name            = 'PRNT_OPTION'
                     ).

  lo_window->open( ).

2 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Both options work in same way ...I can not see the difference, how can I make work the second option?

    Regards

    ReplyDelete