on 03-03-2015 5:27 PM
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
Dear Elko,
Unfortunately, this is the default behaviour in Chrome.
Instead of this solution you can define Suspend and Resume plugs (with an input parameter URL with mailto:) and call it in the event handler. This is definately not the best solution, but there is no annoying new window.
Best regards,
Gabor
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
91 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.