Quantcast
Channel: SCN : All Content - Web Dynpro ABAP
Viewing all articles
Browse latest Browse all 3667

WebDynpro Chrome keeps window after mailto:

$
0
0

Hello Expert,

 

in my WebDynpro Application I want to send an email on user request. User has to double click on an entry in an ItemListBox.

On double click of one item I use the following code in the event handler:

 

l_email = 'mailto:' && l_email && '?subject=' && wd_assist->get_text( wd_assist->gc_txt_email_subj ).

 

* Get API and Window Manager

  lo_component_api = wd_comp_controller->wd_get_api( ).

  lo_view_api      = wd_this->wd_get_api( ).

  lo_win_manager   = lo_component_api->get_window_manager( ).

 

  lo_window = lo_win_manager->create_external_window( url = l_email ).

  lo_window->set_remove_on_close( abap_true ).

  lo_window->open( ).

  lo_window->close( delete_window = abap_true ).

 

The code opens a new temp. window, sends the "maito" command and closes the window immediately.

 

When I use Internet Explorer it works as expected. After double click the New-message-Oulook-window is opened. The temp. window is not seen.

When I use Chrome the message window (Outlook) is also shown, but the temp. window is not closed and stays active in front hiding the actual application.

 

What can I do to prevent this behavior.

Thanks

Elko Hasse


Viewing all articles
Browse latest Browse all 3667

Trending Articles