cancel
Showing results for 
Search instead for 
Did you mean: 

URL in textedit

Former Member
0 Kudos

Is it possible to have a URL in a text edit UI element? We want to have a clickable URL which will open an attachment.

Any clues how we can achieve this?

thanks in adv.

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

You can have a URL in a TextEdit control but it won't become clickable. The TextEdit control is a plain text editor and not an HTML Editor. You would need HTML hyperlinks around the URL for it to be clickable. You could use the formatted text view UI element. It supports a small subset of XHTML UI elements. One of the is the a acnchor tag:

http://help.sap.com/saphelp_nw70ehp1/helpdata/en/08/5696420cc2c56ae10000000a155106/frameset.htm

You can't directly edit in the URL. I tried with the FormattedTextEdit. There is no hyperlink editing feature and if you cut and paste in a hyperlink it gets removed on the next round trip by the safe encoding.

However you could use a normal TextEdit and when the string returns to the server, manipulate the string (perhaps with a regular expression) to insert the anchor tag around anything that appears to be a URL. This anchor link can then be output using the formatted text view UI element.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

For this,you can use LinktoURL UI element instead.

You can specify the URL in the Reference property.

Thanks,

Divya.S