Quantcast
Channel: Software Communities : Popular Discussions - ActiveRoles
Viewing all articles
Browse latest Browse all 1277

Display clickable URL in ARSWI 6.8

$
0
0

In our 6.5 environment, we have the below VBScript running which updates a VA to contain the computer's SCCM details. This link is presented as a clickable URL in the Web Interface. Our 6.8 environment uses the same VBScript, but the URL is presented as a string value and isn't clickable. I converted the script to PowerShell, but it still isn't clickable. Is the process to make an attribute a clickable URL different in 6.8?

 

VBScript

Sub onPostGet(Request)

 

 

    If Request.Class <> "computer" Then Exit Sub

    If Request.Get("edsvaSCCMComputerDetails") <> "" Then Exit Sub

 

    Dim strSCCMURL, strCompName

 

    strSCCMURL = "http://sccmserver/SMSReporting_000/MachDetails.asp?Machine="

    strCompName = Request.Get("cn")

 

    Request.Put "edsvaSCCMComputerDetails", "<a href='"+strSCCMURL+strCompName+"' target='_blank'>Click Here for SCCM Info</a>"

End Sub

 

PowerShell

function onPostGet($Request)

{

          if ($Request.Class -ne 'computer') { return }

          if ($Request.Get('edsvaSCCMComputerDetails') -ne $NULL) { return }

 

          $SCCMUrl = "http://sccmserver/SMSReporting_000/MachDetails.asp?Machine="

          $CompName = $Request.Get('cn')

          $URL = "<a href=$SCCMUrl$CompName target=_blank>Click Here for SCCM Info></a>"

          $Request.Put('edsvaSCCMComputerDetails',$URL)

}


Viewing all articles
Browse latest Browse all 1277

Latest Images

Trending Articles



Latest Images