I believe for it to show accurately in the URL box in the web you will need to make that url field a calculated field similar to this. What I am doing here is if a Configuration item has an asset tag then a hyperlink to the dell support page will show in a URL box I have on my main form.
import System
static def GetAttributeValue(Incident):
HTML = '<center>Dell Support Link Unavailable</center>'
if Incident.ConfigurationItem != null and Incident.ConfigurationItem._AssetTag != null:
URL = 'http://www.dell.com/support/my-support/us/en/04/product-support/servicetag/' + Incident.ConfigurationItem._AssetTag
HTML = String.Format('<left><a style=font-size:10pt href="{0}" target=_blank><img src="http://ldsdwebserver/WebImages/DellSupportCenter.png" width="30" height="30"> Dell Support Center</a>     </left>', URL)
return HTML
So in your case you could use
import System
static def GetAttributeValue(Incident):
HTML = '<center>""</center>'
if "if Org for URL != null and == 'NCC':
URL = 'Org for URL.URL'
HTML = String.Format('<left><a style=font-size:10pt href="{0}" target=_blank><img src="http://ldsdwebserver/WebImages/image.png" width="30" height="30"> NCC URL</a>     </left>', URL)
elif "if Org for URL != null and == 'CCC':
URL = 'Org for URL.URL'
HTML = String.Format('<left><a style=font-size:10pt href="{0}" target=_blank><img src="http://ldsdwebserver/WebImages/image.png" width="30" height="30"> CCC URL</a>     </left>', URL)
return HTML
Hope this helps a little.