on 2015 Oct 05 8:01 PM
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
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>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Shen,
Please have a look to old post may this help.
https://scn.sap.com/thread/2060296
Thanks-
Abhishek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
User | Count |
---|---|
63 | |
9 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.