/// <summary> /// Gets all available data values for the specied Operating System field /// </summary> /// <param name="reportColumn"></param> protected void GetOSFieldValues(AssetList cachedAssetList, AuditDataReportColumn reportColumn) { List <string> fieldParts = Utility.ListFromString(reportColumn.FieldName, '|', true); // We need to get the values for the specific asset details field for each of the assets // specified in the assets list foreach (Asset asset in cachedAssetList) { // Find (any) OS entry for this asset OSInstance osInstance = _cacheOperatingSystemList.GetInstanceForAsset(asset.AssetID); string value = (osInstance == null) ? AWMiscStrings.NoValueFound : osInstance.GetAttributeValue(reportColumn.ShortFieldName); // Add the column to the result set reportColumn.Values.Add(new AuditDataReportColumnValue(value, asset.Name, asset.AssetID, asset.Location)); } }