About Creating Queries
You can create and maintain queries, which you can add to a Dashboard, PM, or SM Work Center.
You can create and maintain queries that allow you to view specific information from Dashboard, Project Management, Service Management, and/or Accounting Work Centers.
Queries can also be linked together to create inquiries. Inquiries are two or more queries that are linked together so that users can drill-through from one query to another. See Creating Inquiries for information on creating inquiries.
You can add queries and inquiries to Work Centers so that they display specific information. For example, you can write your own SQL SELECT statement and then add that query to a Work Center. For more information about adding queries to a Work Center, see PM Work Center Overview.
Related Items and Attachments Functionality
Your custom SQL query must be configured in a specific way to work with the Related Items panel on the SM and PM Work Center. For example, if you add the inquiry to an SM Work Center, you can select an item in the inquiry, and the related items and attachments associated with that item will display in the Related Items panel in the work center.
To configure your SQL inquiry, you will need to add the following three columns to your inquiry:
- FormName
- KeyID
- UniqueAttchID.
The FormName field is the name of the form associated with the record that the inquiry is displaying (for example PMDailyLog if you're displaying daily logs). These three columns do not have to be visible.
Click the links below for more information about creating queries.