Re: SMS SDK - Reports.create
- From: "Garth" <Spam@xxxxxxx>
- Date: Wed, 10 Jan 2007 22:14:46 -0500
What I am trying to do is use the SDK and VB.NET 2k5 to create reports as part of a setup vs telling poeple to importing the web report MOF then link each report to it's parent report.
I have opened a case with MS last week on this topic and they have yet to find a solution to the problem. Check out my blog tomorrow at 9:41 am EST to see what I have to say on this issue, since it will be one week with an open case on this issue.
"Nick SMS Administrator - Detroit, Mi" <NickSMSAdministratorDetroitMi@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message news:CE2D23EE-334C-4E59-AE1E-D2DBDCEC1E9B@xxxxxxxxxxxxxxxx
Hey Garth.
I think the SDK is referencing some settings when you see the part that says
"oReport3.DisplayInComputerDetails = True"
I know there's a check mark on the 'general' tab of a reports properties
that says "Display in Computer Details". If that box is checked and you go
to your SMS reporting point's website
http:\\smsservername\smsreporing_sitecode, there are three sections; Reports,
Dashboards, and Computer Details. The reports that have that box checked
will show up under the Computer Details section.
Based on that logic, I would assume that the other parts of your query that
say "oReports3" are instructing you to set some settings in the properties of
the report.
The Microsoft SMS 2003 SDK is a reference for a "Software" Development Kit.
I'm assuming the settings "oReports3" are for if you wanted to script the
creation of a report using VBS or some sort of other scripting method. You
are just using the Admin Console.
I'm a newbie myself when it comes to report creation, but have learned a lot
in the past few months. If you are trying to limit your query to run on a
group of computers that were created with a different query, try the
subselect option for creating a collection and then run a report for "all
resources in a specific collection".
What exactly are you trying to report on?
"Garth" wrote:
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?
- References:
- SMS SDK - Reports.create
- From: Garth
- RE: SMS SDK - Reports.create
- From: Nick SMS Administrator - Detroit, Mi
- SMS SDK - Reports.create
- Prev by Date: RE: SMS SDK - Reports.create
- Next by Date: Re: Date Format
- Previous by thread: RE: SMS SDK - Reports.create
- Next by thread: Re: SMS SDK Automation.dll and Collection Rules
- Index(es):
Relevant Pages
|
Loading