Modifying the HardwareAsset & Microsoft.WIndows.Computer Js files to pull in more data

Zackary_SlatesZackary_Slates Customer IT Monkey ✭
Hi all,
Going through AM implementation and I found Operating System Install Date in the DB. I then put in the following to have it show up on the Microsoft.Windows.Computer.js file to get it to show (and was successful):

{ DataType: "String", PropertyDisplayName: "InstallDate", PropertyName: "OperatingSystem.InstallDate", MinLength: 0, MaxLength: 200 }

I then went to the HardwareAsset.js file to replicate the work to pull in this in under Misc and was not successful.  I  tried several things. 
{ DataType: "String", PropertyDisplayName: "OperatingSystemVersionDisplayName", PropertyName: "Target_HardwareAssetHasAssociatedCI.OperatingSystem.DisplayName", Disabled: true },  (no results)
----
{ DataType: "String", PropertyDisplayName: "OperatingSystemVersionDisplayName", PropertyName: "Target_HardwareAssetHasAssociatedCI.DisplayName", Disabled: true },  (pulls computer name)
---
{ DataType: "String", PropertyDisplayName: "OperatingSystemVersionDisplayName", PropertyName: "Target_HardwareAssetHasAssociatedCI.OperatingSystemDisplayName", Disabled: true }, (no results)                                       ],
                                  
Can someone tell me what I'm doing wrong.

Better yet I think I can see whats available in in the console (f12)...but I'm not very good at it.  Can I see all variables available in the console? 

Thanks

Zack



Best Answer

Answers

  • Zackary_SlatesZackary_Slates Customer IT Monkey ✭
    Thanks Geoff!

    I'm not quite up to creating a custom type projection and maybe some help figuring out what data I do have access to might be best for right now.

    It looks like I can get to most data stored in the ServiceManagement csnCached_MT_Computer table.  I say most because some info in that table I cannot seem to pull in (Example:.OperatingSystemXMicrosoft_Windows_ComputerHostsOperatingSystem_DisplayName).

    I'm wondering is there a way to see what data is available in a form (HardwareAsset.js)?  I was thinking hitting f12 and bringing up the console might be of some help?

    Zack



Sign In or Register to comment.