cancel
Showing results for 
Search instead for 
Did you mean: 

WDA - FormattedTextView Decorative Element

former_member192852
Participant
0 Kudos

Hi There,

I am trying to create a formatted text decorative element in WDA via admin mode. Please see the screen shots attached.

Added some texts with an anchor tag and the link is not working... According to SAP document, the link won't work even if we pass the parameter href.

<a href=http://www.google.com>Google</a>

Supported Tags -  Web Dynpro ABAP - SAP Library

Where do I create the onAction event to add the code? Any inputs would be very much appreciated. Should I enhance the classs, CL_WD_FORMATTED_TEXT or CL_WD_FORMATTED_TEXT_VIEW?

Thank you,

Shen


Accepted Solutions (1)

Accepted Solutions (1)

former_member192852
Participant
0 Kudos

It requires the target attribute for the link to work. So silly... No need to fire an onAction event.

Correct tag,

<a href="http://www.google.com" target="_blank">Google</a>



Answers (1)

Answers (1)

AbhishekSharma
Active Contributor
0 Kudos

Hi Shen,

Please have a look to old post may this help.

https://scn.sap.com/thread/2060296

Thanks-

Abhishek

former_member192852
Participant
0 Kudos

Hi Abhishek,

Thank you for the quick response. I saw this thread earlier but unfortunately it didn't help me. I tried to put a break point in make_a_tag method but it was not stopping there rather it stops in render_special_tag.

I used FormattedTextView UI elements in WDA in the past and was able to add the code in onAction event handler method to launch the url.

But I am trying to do this via admin mode - decorative element. Any other clue please?

Thank you,

Shen