on 06-26-2009 12:14 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
For this,you can use LinktoURL UI element instead.
You can specify the URL in the Reference property.
Thanks,
Divya.S
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
81 | |
10 | |
10 | |
9 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.