cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with setting Focus on external (File Explorer) window

Former Member
0 Kudos

Hi all,

we have a problem with an external window. In an event handler of a view we open an external window. With this window we open the File Explorer, where the user can select a specific file. We can't link directly to the file, because there can be more in this directory.

The problem is that when we use the method "OPEN" for the external window, the window popups, but almost direct the focus is back to the view and the external window (read file explorer screen) disappears to the background.

Does anyone know if is is possible to keep the focus on the external screen, and that the view proceeds in the background?

Here is the code we have written in the specific method which call the external window:

  • call new window **********************************************************************

DATA: lo_window_manager TYPE REF TO if_wd_window_manager,

lo_cmp_api TYPE REF TO if_wd_component,

lo_window TYPE REF TO if_wd_window.

lo_cmp_api = wd_comp_controller->wd_get_api( ).

lo_window_manager = lo_cmp_api->get_window_manager( ).

lo_window = lo_window_manager->create_external_window( url = lf_url ).

lo_window->set_window_position( position = if_wd_window=>co_top ).

lo_window->open( ).

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Unfortunately no right answer, so i will build a work-around