Quantcast
Viewing all articles
Browse latest Browse all 2021

Custom Drilldown Report by raw SQL

I need a solution

Hi all, 

I am using CMS 7.6 which is installed on Windows Server 2012 R2. I am assigned to create a custom endpoint report with drilldown details of installed software.

In the Data Source tab of custom report, I have written the following SQL query:

SELECT 

[iaai].[_ResourceGuid] AS [_ItemId],

[iaai].[Name],

[iaai].[FQDN],

[iaai].[System Type],

[iaai].[OS Name],

[iaai].[Last Logon User]

FROM

Inv_AeX_AC_Identification iaai

ORDER BY [iaai].[Name]

In the Drilldowns tab, I have the following configuration:

Image may be NSFW.
Clik here to view.
ScreenHunter_105 Feb. 12 15.59.jpg

For the child report which runs drilldown action, I have written the following SQL query:

DECLARE @v1_DrillTemp2 uniqueidentifier
   SET @v1_DrillTemp2 = '00000000-0000-0000-0000-000000000000'

SELECT

[iarp].[_ResourceGuid] AS [_ItemId],

[iarp].[DisplayName],

[iarp].[DisplayVersion],

[iarp].[Publisher],

[iarp].[InstallDate]

FROM

Inv_AddRemoveProgram iarp

WHERE [iarp].[_ResourceGuid] = @v1_DrillTemp2

ORDER BY [iarp].[DisplayName]

I have also added a query parameter for child report as below:

Image may be NSFW.
Clik here to view.
ScreenHunter_106 Feb. 12 16.07.jpg

After saving changes of two reports, I open the custom endpoint report and test the drilldown action by double-click the endpoint name. The drill down action is successful but the child report is shown without any data result. What steps I need to do so that the data can be shown in the child report after running the drill down action in the custom report?

0

Viewing all articles
Browse latest Browse all 2021

Trending Articles