Symantec Connect
  • Login
  • Register
  • Endpoint Management & Virtualization
    • All of Connect
    • Backup and Archiving
    • Endpoint Management & Virtualization
    • Storage and Clustering
    • Security
    • Inside Symantec
    • Vision User Conference
    • Partners
    • Developers
    •  
  • Overview
  • Forums
  • Articles
  • Blogs
  • Downloads
  • Events
  • Videos
  • Groups
  • Ideas
Login to participate
Endpoint Management & Virtualization Community BlogRSS

Using Collection Item Pickers to Filter Reports

nravenscroft's picture
nravenscroft
July 18th, 2008
Filed under: Altiris Client Management Suite, Altiris IT Asset Management, Altiris Server Management Suite, Reporting, Endpoint Management & Virtualization Community Blog, Endpoint Management and Virtualization

The Item picker is a great tool for extending the functionality of reports. More specifically the collection picker allows you to dynamically manage the scope of your reports.

In this article we'll go over how to create and use a collection picker.

Click to view.

Go ahead and click finish and then open the edit windows for the report.

Once in the Edit window we'll need to create a couple parameters, so click the New Parameter button and create a basic string parameter called AppName be sure to click the box for to Prompt User, type a friendly name and set the default value to %.

Click to view.

Once the AppName parameter is created, we will need to create one more parameter for the collection picker. Give the new parameter the name of Collection, change the parameter type to Item picker and the class filter to Collections.

Click to view.

Ok, now we need to put in our Query so in the Level Query box click the edit pencil and paste the following SQL Query into the box and click Finish.

SELECT vc.Name as 'Computer Name', arp.name as 'Application Name'
from vComputer vc        
join Inv_AeX_OS_Add_Remove_Programs arp on arp._ResourceGuid = vc.Guid       
INNER JOIN dbo.CollectionMembership cm ON vc.Guid = cm.ResourceGuid     
where cm.CollectionGuid ='%Collection%'  
AND arp.Name LIKE '%AppName%'

Now let's save the changes to the report by clicking apply and then run the report.

Click to view.

So now we have our fancy new report that can filter based on collections. You can easily add this functionality to all your reports by copying the following lines into your existing reports and adding a Collection item picker parameter.

INNER JOIN dbo.CollectionMembership cm ON vc.Guid = cm.ResourceGuid    
Where cm.CollectionGuid ='%Collection%'

Do note that I am joining the collection table to the vComputer view under the alas of vc in this example so you will need to modify the query to fit your report.
For example we wanted to add a collection picker to the following SQL Query

Select * from Inv_AeX_AC_Identification

We would need to modify the query as follows:

Select * from Inv_AeX_AC_Identification
INNER JOIN dbo.CollectionMembership cm ON Inv_AeX_AC_Identification
._ResourceGuid = cm.ResourceGuid    
Where cm.CollectionGuid ='%Collection%'  

I have attached the completed example report for your viewing pleasure.

License: AJSL
By clicking the download link below, you agree to the terms and conditions in the Altiris Juice Software License
Support: User-contributed tools on the Juice are not supported by Altiris Technical Support. If you have questions about a tool, please communicate directly with the author by visiting their profile page and clicking the 'contact' tab.
  • Add Remove Programs Example.zip
0 votes
  • nravenscroft's blog
  • Login or register to post comments
  • Comments RSS Feed

About Endpoint Management and Virtualization Community Blog

The Endpoint Management & Virtualization Community Blog is the perfect place to share short, timely insights including product tips, news and other information relevant to the Endpoint Management & Virtualization community. Any authenticated Connect member can contribute to this blog.
Filter by:

Recent Blog Posts

  • How to Install and Uninstall IBM Installation Manager using XML files
    WiseUser - March 18, 2010
  • Future Tech - Silverlight and phones (Altiris future mobiltity)
    Palvaran - March 16, 2010
  • Webcast - Redefining Endpoint Management with Altiris IT Management Suite 7.0 from Symantec
    ohzone - March 15, 2010
  • USB Swiss Army Knife: 7 Quick Fix
    riva11 - March 12, 2010
  • Cebit is over. What will be our next big show?
    erikw - March 12, 2010

Blog Tags

7.1 Agents Altiris Client Management Suite Altiris Deployment Solution Altiris IT Asset Management Altiris Notification Server Altiris Recovery Solution Altiris Server Management Suite Asset Management Suite Backup Exec Backup Exec System Recovery Basics Best Practice Beta CIO Digest Case Study Compatibility Configuring Customer Preview Customer Reference Database Dell Dell Management Products Demonstration Documentation Downloads Drivers Emerging Threats Endpoint Management and Virtualization Endpoint Protection (AntiVirus) Enterprise Vault Error messages Evaluating Features General Symantec Ghost Solution Suite HP Management Products Helpdesk Solution How to ITMS Industry Event Inside Symantec Installing Licensing Linux Local DS GURU Email group Mac OS ManageFusion Mobile & Wireless NetBackup New Release News News Performance Platforms & Hardware Problem Management Recovering Reporting Restore SP2 SecurityExpressions Service Pack 2 ServiceDesk Storage Foundation Symantec Connect Symantec Event TMS TechTips Tip/How to Tips/How To Training Troubleshooting Upgrade User Group VDI VMware Virtualization Virtualization Vision Vulnerabilities & Exploits Windows Windows Wise Application Packaging Wise Installation Development Wise Virtual Composer Workflow Solution Workspace Corporate Workspace Profiles Workspace Remote Workspace Streaming Workspace Virtualization XPF baltimore deployment hugo known_issue pcAnywhere solution webcast
© 2010
  • Symantec Corporation
  • Contact Us
  • Get RSS
  • Privacy Policy
  • Symantec.com