on 09-06-2011 11:26 PM
Hi,
I have a a URL embedded in a FormattedTextView UI element:
Need help? For technical support and other resources, review our <a href="http://insidemit.mit.edu/help-apps/contact.shtml"><strong>contact information</strong></a>
I have implemented an action associated with this UI element and I know that the parameter HREF will contain the URL but I don't know how to redirect the user to the URL.
What is the necessary code?
Thanks,
Carolyn Fuller
Hi
You can create an external window using the URL which is present in the HREF parameter of WDEVENT
here is the sample code.
data link type string.
wdevent->GET_DATA(
exporting
name = 'HREF'
IMPORTING
value = link
).
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_EXTERNAL_WINDOW(
URL = link
).
lo_window->open( ).
Thanks
Sarbjeet Singh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
90 | |
10 | |
10 | |
10 | |
7 | |
7 | |
6 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.