abhai
Posts: 27
Score: 3 Joined: 7/17/2006 Status: offline
|
First Replace your given report Query with the new Query(Slight Change) SELECT v_GS_SYSTEM_ENCLOSURE.ChassisTypes0, Case v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 when '1' then 'Other' when '2' then 'Unknown' when '3' then 'Desktop' when '4' then 'Low Profile Desktop' when '5' then 'Pizza Box' when '6' then 'Mini Tower' when '7' then 'Tower' when '8' then 'Portable' when '9' then 'Laptop' when '10' then 'Notebook' when '11' then 'Hand Held' when '12' then 'Docking Station' when '13' then 'All in One' when '14' then 'Sub Notebook' when '15' then 'Space-Saving' when '16' then 'Lunch Box' when '17' then 'Main System Chassis' when '18' then 'Expansion Chassis' when '19' then 'SubChassis' when '20' then 'Bus Expansion Chassis' when '21' then 'Peripheral Chassis' when '22' then 'Storage Chassis' when '23' then 'Rack Mount Chassis' when '24' then 'Sealed-Case PC' else 'Undefinded' end as 'PC Type', Count(v_GS_SYSTEM_ENCLOSURE.ChassisTypes0) AS 'Total' FROM v_GS_SYSTEM_ENCLOSURE v_GS_SYSTEM_ENCLOSURE GROUP BY v_GS_SYSTEM_ENCLOSURE.ChassisTypes0 Order by 'PC Type' --------------------- create another report Put below Query for new report-- SELECT distinct SYS.Netbios_Name0, SYS.User_Name0,CSYS.Model0,bios.serialnumber0 as 'Serial No',Processor.Name0 as 'Processor Name',MEM.TotalPhysicalMemory0/1024 as 'Total Physical Memory(MB)', OPSYS.Caption0 as C054, OPSYS.Version0 FROM v_R_System SYS LEFT JOIN v_GS_X86_PC_MEMORY MEM on SYS.ResourceID = MEM.ResourceID LEFT JOIN v_GS_COMPUTER_SYSTEM CSYS on SYS.ResourceID = CSYS.ResourceID LEFT JOIN v_GS_PROCESSOR Processor on Processor.ResourceID = SYS.ResourceID LEFT JOIN v_GS_OPERATING_SYSTEM OPSYS on SYS.ResourceID=OPSYS.ResourceID LEFT JOIN v_GS_PC_BIOS Bios on SYS.ResourceID=Bios.ResourceID LEFT JOIN v_GS_SYSTEM_ENCLOSURE otype on SYS.ResourceID=otype.resourceid WHERE otype.chassisTypes0=@variable ORDER BY SYS.Netbios_Name0 Create new prompt for this report--- name- variable Prompt Text- Enter Chassis Type Prompt SQL(Enable Check Box) Prompt SQL-- begin if (@__filterwildcard = '') SELECT DISTINCT SYS.ChassisTypes0 from v_GS_SYSTEM_ENCLOSURE SYS ORDER By SYS.ChassisTypes0 else SELECT DISTINCT SYS.ChassisTypes0 from v_GS_SYSTEM_ENCLOSURE WHERE SYS.ChassisTypes0 like @__filterwildcard ORDER By SYS.ChassisTypes0 end Save this report.Note down the report number .Example new report number is 300.Now open old report, Click on Link to another report,select report 300 for connection.Now run ur old report.U will get in left pane , one connector,Click on it.It will give u detailed info regarding that particular chassis.
_____________________________
Abhai Srivastava Project Engineer,SMS 2003
|