Quantcast
Channel: Ivanti User Community: Message List
Viewing all articles
Browse latest Browse all 11624

Re: Add Hyperlink to Intranet Page on Window

$
0
0

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>&nbsp&nbsp&nbsp&nbsp&nbsp</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>&nbsp&nbsp&nbsp&nbsp&nbsp</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>&nbsp&nbsp&nbsp&nbsp&nbsp</left>', URL)

      

       return HTML

 

Hope this helps a little.


Viewing all articles
Browse latest Browse all 11624

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>