on 09-03-2008 3:34 PM
Hello Guys,
I want to create 2 text on my Page .
First text contains normal text with the hyperlink to a website .
Second will contain the normal text concatnated to an Email address this email address should be shown as we normally show underlined and in Bluecolor.
I tried to achieve this both using Formatted text view.
For the First case I refered an unanswered thread .
I am facing the same issue as Prashant.
For the second I added address tag before the Href tag . The resultant tag is like
<address>
Author: of this document:<br />
<a href="mailto:donald@disneyland.com">Donald Duck</a>
</address>
Ideally it should disply italic underlined emailid which is not exactly I want but this is not achieving what it should.
Please guide me on both the issues.
Regards,
Hema
There is an [LinkToURL|http://help.sap.com/saphelp_nw04s/helpdata/en/49/e8884118aa1709e10000000a155106/content.htm] UIElement in Web Dynpro,
why you are not using this?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello Robert,
I am not using link to url because I have a text and link is part of that text.
If I use Link to URL i have to use the textview before and after link to to URL to display normal text.
and then allignment and spacing issue is occuring.
I will try this onaction method for URL .
I am still not sure how to achieve the same for mail id . Hoping to get reply on that too..
Thanks for the help.
Regards,
Hema
So add to your Formatted TextView something like this:
for web-url:
<a href="http://www.google.com">www.google.com</a>
and for emails: a href="mailto:mailmail.de" ( = @)
and then in the onAction-Handler-Method
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 = HREF ).
window->open( ).
This works fine with http and mail.
Ok, related to the UIElement FormattedTextView.
It got an an Action "OnAction".
So you have to create an HandlerMethod.
This method got a standard parameter HREF,
which you can use to create an external window to go to this url.
To create an external window you have use this Interface/Method:
IF_WD_WINDOW_MANAGER->CREATE_EXTERNAL_WINDOW.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
23 | |
11 | |
9 | |
8 | |
5 | |
5 | |
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.