cancel
Showing results for 
Search instead for 
Did you mean: 

Quick Help with a Hyperlink

Former Member
0 Kudos

Hello Colleague,

I have a requirement where i need to create a QUICK HELP with a hyperlink in it.

I use EXPLANATION element to create quick help in WD ABAP. I want to know how can i add a Hyperlink in the text.

Example.

My name is Piyush Deora.

Here, Piyush Deora is a Hyperlink that traverses to a WebPage.

Thank you in advance.

Regards,

Piyush Deora

Accepted Solutions (0)

Answers (3)

Answers (3)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

For security reasons you can do what you describe. Any text output via the Explanation or Quickinfo (or many other UI elements), goes through safe encoding to make sure it doesn't contain any HTML or JavaScript.

Former Member
0 Kudos

Hi piyush,

use the element 'LINK TO ACTION' to access th link and include this piece of code in the 'on action' event.

DATA: api_component TYPE REF TO if_wd_component,

window_manager TYPE REF TO if_wd_window_manager,

window TYPE REF TO if_wd_window.

api_component = wd_comp_controller->wd_get_api( ).

window_manager = api_component->get_window_manager( ).

window = window_manager->create_external_window(

url = url

modal = abap_false ).

window->open( ).

Pass the desired web page URL to the 'URL" field.

Hope this will be needful.

Thanks,

Martina

Former Member
0 Kudos

Hi,

My query is not HOW TO USE LINK_TO_ACTION/URL.

I want to know if i can add a hyperlink in the text of the Explanation UI Element,

Regards,

Piyush

Former Member
0 Kudos

Hi Piyush,

As far as i know, you can only give only free text of 255 characters but not hyperlinks.

Regards,

Manne.

Former Member
0 Kudos

HI Piyush,

You cannot add URL in the explanation text,instead of that insert a 'TEXT' element and 'LINK TO ACTION' element in a 'TRANSPARENT CONTAINER' element with flow layout and include the piece of code..

Regards,

Martina

abdulbasit
Active Contributor
0 Kudos

Use "Link to URL" element.