‎08-04-2021 11:31 PM
Select Top 1000000 tblassets.AssetID,
tblassets.AssetName,
tsysassettypes.AssetTypeIcon10 As icon,
tblassetcustom.Manufacturer As Manufacturer,
tblassetcustom.Model As Model,
tblassetcustom.Custom2 As [IMEI 1],
tblassetcustom.Custom3 As [IMEI 2],
Query2.Displayname As [User],
Query2.Department As Department,
Query2.Title As Title,
Query4.AssetName As [SIM Card]
From tblassets
Inner Join tblassetcustom On tblassets.AssetID = tblassetcustom.AssetID
Inner Join tsysassettypes On tsysassettypes.AssetType = tblassets.Assettype
Inner Join (Select tblAssetUserRelations.Username,
tblAssetUserRelations.AssetID
From tblAssetUserRelations) Query1 On Query1.AssetID = tblassets.AssetID
Inner Join (Select tblADusers.Displayname,
tblADusers.Username,
tblADusers.Department,
tblADusers.Title
From tblADusers) Query2 On Query2.Username = Query1.Username
Inner Join (Select tblAssetRelations.ParentAssetID,
tblAssetRelations.ChildAssetID
From tblAssetRelations) Query3 On Query3.ParentAssetID = tblassets.AssetID
Inner Join (Select tblassets.AssetID,
tblassets.AssetName
From tblassets) Query4 On Query4.AssetID = Query3.ChildAssetID
Where tsysassettypes.AssetTypename = 'Smartphone'
‎08-05-2021 09:39 PM
Query4.AssetName As [SIM Card]with
'http://your_lansweeper_server:81/asset.aspx?AssetID=' + Convert(VarChar(8),Query4.AssetID) As [hyperlink_SIM Card],
Query4.AssetName As [hyperlink_name_SIM Card]
‎08-05-2021 11:33 PM
RC62N wrote:
It won't provide the bubble view on hover, but you can create your own hyperlink for the SIM card. ReplaceQuery4.AssetName As [SIM Card]with'http://your_lansweeper_server:81/asset.aspx?AssetID=' + Convert(VarChar(8),Query4.AssetID) As [hyperlink_SIM Card],
Query4.AssetName As [hyperlink_name_SIM Card]
Substitute your LANSweeper server name or IP address for "your_lansweeper_server", of course.
Source: Adding color and hyperlinks to reports
Experience Lansweeper with your own data. Sign up now for a 14-day free trial.
Try Now