URL Controls
There are a couple of options to display a hyperlink to an external site from Siebel 7. The simplest is to set the following properties on an applet control:
- HTML Type: URL
- HTML Display Mode: EncodeData
This will URL-encode the field and wrap it in an HTML link tag <a></a>. As long as your field contains a valid URL, you’ll have a working hyperlink. In the high-interactivity client the URL will by default open in a new browser window; to support the same behaviour in the standard interactivity client, set:
- HTML Attributes: target=’_blank’
This approach doesn’t allow you to change the link title, however, so if it’s a big ugly URL you’ll have a big ugly field displayed in your applet. As an alternative, you can hand-code the hyperlink. Set the calculated value on your field as follows:
“<a href=’http://yourURL.com/yourtargetpage.html‘ target=_blank>Your Link Text</a>”
(Note the enclosing double-quotes.) Then set up your applet control:
- HTML Type: Field
- HTML Display Mode: DontEncodeData
- Runtime: Y
This tells the Siebel UI to interpret the contents of the field as raw HTML - so you see your hyperlink exactly as constructed.
1 comment June 5th, 2007