SMS SDK - Reports.create
- From: "Garth" <Spam@xxxxxxx>
- Date: Tue, 2 Jan 2007 12:50:24 -0500
I'm trying to create three web reports using the SMS SDK based on these
three queries below. I want to have each query drill through to the next
with last one drill through to Computer details.
None of the examples within the SDK show how to create a drill through
report.
Query 1
Select Manufacturer0, count(Manufacturer0) from v_GS_COMPUTER_SYSTEM group
by Manufacturer0
Query 2
SELECT v_GS_COMPUTER_SYSTEM.Name0 AS 'Name',
v_GS_COMPUTER_SYSTEM.Manufacturer0 AS 'Manufacturer',
v_GS_COMPUTER_SYSTEM.Model0 AS 'Model'
FROM v_GS_COMPUTER_SYSTEM v_GS_COMPUTER_SYSTEM
WHERE (v_GS_COMPUTER_SYSTEM.Manufacturer0='Microsoft Corporation')
Query 3
SELECT v_GS_COMPUTER_SYSTEM.Name0 AS 'Name', v_GS_COMPUTER_SYSTEM.Domain0 AS
'Domain', v_GS_COMPUTER_SYSTEM.Manufacturer0 AS 'Manufacturer',
v_GS_COMPUTER_SYSTEM.Model0 AS 'Model',
v_GS_COMPUTER_SYSTEM.PrimaryOwnerName0 AS 'Owner',
v_GS_COMPUTER_SYSTEM.UserName0 AS 'User Name'
FROM v_GS_COMPUTER_SYSTEM v_GS_COMPUTER_SYSTEM
WHERE (v_GS_COMPUTER_SYSTEM.Name0='Computer Name')
This section of code produces no errors when compiled however when debugged
it will produce a "Generic Failure" when the "oReport3.Save()" line is
executed.
Dim oProvider As New SMSProvider(m_sSiteServer, m_sUsername, m_sPassword, "
Setup Prog")
Dim oReport3 As SMSReport = oProvider.Reports.Create("Manufacturer ",
"Company", "SELECT v_GS_COMPUTER_SYSTEM.Name0 AS 'Name',
v_GS_COMPUTER_SYSTEM.Domain0 AS 'Domain', v_GS_COMPUTER_SYSTEM.Manufacturer0
AS 'Manufacturer', v_GS_COMPUTER_SYSTEM.Model0 AS 'Model',
v_GS_COMPUTER_SYSTEM.PrimaryOwnerName0 AS 'Owner',
v_GS_COMPUTER_SYSTEM.UserName0 AS 'User Name'
FROM v_GS_COMPUTER_SYSTEM v_GS_COMPUTER_SYSTEM
WHERE (v_GS_COMPUTER_SYSTEM.Name0='Computer Name')")
oReport3.DisplayInComputerDetails = True
oReport3.ComputerNameColumn = 1
oReport3.LinkType = ReportLinkTypes.LinkToComputerDetails
oReport3.Save()
i = oReport3.ReportID
The SDK is very light on details as to which options need to be set in order
to allow drill throughs to work correctly.
My questions are?
1) Does anyone have any good examples on how to create drill through
reports?
2) Does anyone have an update to the SDK that list which options are
need to allow drill through to work correctly?
3) Does anyone know what I'm doing wrong?
.
- Follow-Ups:
- RE: SMS SDK - Reports.create
- From: Nick SMS Administrator - Detroit, Mi
- RE: SMS SDK - Reports.create
- Prev by Date: WMI Script to find resource ID
- Next by Date: Re: SMS SDK Automation.dll and Collection Rules
- Previous by thread: WMI Script to find resource ID
- Next by thread: RE: SMS SDK - Reports.create
- Index(es):
Relevant Pages
|