Upload
kye-hittle
View
1.128
Download
0
Tags:
Embed Size (px)
DESCRIPTION
Citation preview
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Beginning IQA
Kye Hittle, Director of ITBeta Theta Pi Foundation
Monday, April 16, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What is IQA?
• Intelligent Query Architect is a browser-based reporting tool built into iMIS
• Not a third-party tool like Crystal Reports, Microsoft SQL Server Reporting Services
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What does IQA do?
NiUG Discove
ryOrlando, FL
April 16-18, 2012
IQA Finds
NiUG Discove
ryOrlando, FL
April 16-18, 2012
IQA Produces Lists & Spreadsheets
NiUG Discove
ryOrlando, FL
April 16-18, 2012
IQA Reports
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Why use IQA?
• Design a query once for multiple uses• More flexible search options
Multiple parameters in one query Parameters can be calculations Flexible results display
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Where does IQA live in iMIS?
• The nav bar in Customers, Events, and Orders modules includes a link to a module-specific IQA folder in the iMIS doc system
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Where does IQA live in iMIS?
• Queries and the Business Object Designer (BOD) are also available under the Tools tab
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Where does IQA live in iMIS?
…or iSA tab for older versions of i15
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Where does IQA live in iMIS?
• IQAs are also used in many iMIS components (e.g. public views, System Setup)
• Allows you to customize some interfaces
NiUG Discove
ryOrlando, FL
April 16-18, 2012
When should we use IQA?
Displaying small result sets on-screen
NiUG Discove
ryOrlando, FL
April 16-18, 2012
When should we use IQA?
Results need to be live links to a Customer, Event registration, donation, etc.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
When should we use IQA?
Reports with many parametersCrystal Reports IQA
NiUG Discove
ryOrlando, FL
April 16-18, 2012
When should we use IQA?
Extracting results into a spreadsheet
NiUG Discove
ryOrlando, FL
April 16-18, 2012
When should we NOT use IQA?
Reports that require: • Formatting • Layout• Multiple levels of grouping • “Think spreadsheets”
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Report Designers• Typically iMIS
admins & “power users”
• Create New and Edit existing IQAs
Who uses IQA?
End-users• Typically staff and
public view users• Run IQAs built by
designers
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How End-users Run IQAs
1. Find and select IQA2. Click Run (or double-click)3. (optional) Supply filter values & click 4. (optional) Select record or extract results
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How Report Designers create IQAs
1. Gather & Analyze reporting requirements2. Determine/create data Sources (Business
Objects) and link3. Create Filters4. Select Display fields5. (optional) Set Sorting order, Security6. Test7. Save
• IQA Design Overview
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Gather reporting requirements
• Do we already have something similar? Where else will the organization need to use similar queries?
• Where is the data located in the iMIS interface? How is it linked?
• What filters are needed?• What columns do you need to display?
Any sorting?
• 1. Reporting Requirements
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Analyze reporting requirements
• Do Business Objects exist to access required data?
• Are subtotals, counts or averages needed?
• Are
• 1. Reporting Requirements
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Before we begin designing…
• Click New > Query to create from scratch• Click Edit to create from existing IQA
(recommended)• Set your IQA Edit view to Advanced to see all
options
• IQA Design Prep
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Basic vs. Advanced Mode
• Basic Mode Define sources + filters + what to display Run or Run as Report
• Advance Mode Using Queries in iMIS searches Aggregate criteria & display SQL Expressions in queries
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What’s a Business Object?
Business Objects are predefined or custom abstractions of iMIS database table(s) and/or
view(s)
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Business Objects are an abstraction layer
Business Objects can enable field aliases, data formatting, code lookups,
data from multiple tables/views & more
• 2. Sources (Biz Objs) & Links
IQA
Business ObjectBusines
s ObjectBusiness Object
Table or
View
iMISDatabase
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What’s a Business Object?
Example The predefined CsContact Business Object represents a Customer record (uses Name,
Name_Fin tables)
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Choosing Business Objects
• There are hundreds of pre-built Business Objects and you will create many custom objects
• How do designers figure out which Business Objects to use?
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Choosing Business Objects
iMIS Standard Prefixes• Most built-in biz objects start with ‘Cs’• Biz Objects built for Custom Demographic
tables typically start with ‘CsDemo_’• Use Biz Obj Designer to see
tables/views/fields in each Biz Obj• …use a naming standard for custom
Business Objects (e.g. prefix with org acronym)
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to select Business Objects
1. From the Sources tab of your IQA query, click Add Source
2. From the pop-up window, select Business Object
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Linking Business Objects
• Each Business Object must be linked to at least one other Business Object
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Linking Business Objects
• In order to link two Business Objects they must share a common field (often iMIS ID)
• The field names do not have to be identical but the data must match for a record to be included (using default link)
• This is the same concept as (inner) joining relational database tables
CsContact
•iMIS ID•Full Name•Informal•Email•…
CsActivity•ID•Activity Type•UF 1•UF 2•…
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to link Business Objects
1. Select one of the predefined links (defined by Biz Obj) OR select Custom
• 2. Sources (Biz Objs) & Links
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to link Business Objects
2. (if Custom) Choose the field to link on for each Business Object
3. Important! Click button to save!
• 2. Sources (Biz Objs) & Links
Deletes a link
Equals is the most common link type.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to link Business Objects
All Sources have now been related!
• 2. Sources (Biz Objs) & Links
You will have one less Link than total
number of Biz Objs.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What’s a Filter?
Answer: Simply put, Filters are the selection criteria for your query.
Analogy: Excel filter function applied to a column displays only records that meet filter value(s)
• 3. Filters
Filters limit result sets.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What’s a Filter?
Analogy: selecting Books from the amazon sidebar after searching for football updates results to display only books
• 3. Filters
Filters limit result sets.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What’s a Filter?
• IQA Filters can have default values and/or be entered at IQA run-time
• Note! You may have already “filtered” results based on your Source links (e.g. if you link CsContact to CsDonations, people without gifts will be excluded*)
*unless Left Join link type is selected (discussed later)
• 3. Filters
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to add a Filter
1. Choose <Biz Obj>.<Field> to filter from Property drop-down
2. Choose Filter Comparison
• 3. Filters
NiUG Discove
ryOrlando, FL
April 16-18, 2012
3. (optional) Enable Multiple filter values
4. (optional) Enter default filter Value(s)
How to add a Filter
• 3. Filters
Multiple option only available on certain fields
and comparisons.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to add a Filter
5. (optional) Choose filter Prompt No = do not display filter prompt Optional = display, not required –
most flexible Required = display with asterisk
6. (optional) Rename the user prompt7. Important! Click button to save!
• 3. Filters
NiUG Discove
ryOrlando, FL
April 16-18, 2012
How to edit or delete a Filter
Make changes and then click Refresh to save!
• 3. Filters
Click to delete a filter
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Determine what fields Display
1. Set drop-down to All
2. Check/uncheck <Business Object>.<Field> to include/exclude column from results
3. Click Refresh
• 4. Display
NiUG Discove
ryOrlando, FL
April 16-18, 2012
4. (optional) Enter column Alias to provide a different column heading
5. (optional) Choose column Order from sequence drop-downs on right
6. Click Refresh
Determine what fields Display
• 4. Display
If no Alias is specified, this
is used.
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Determine Sorting order
(optional) 1. Select <Business Object>.<Field>
to sort on from Property drop-down2. Select Ascending or Descending7. Important! Click button to save!
• 5. Sorting, Security
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Set Security options
(optional)
• 5. Sorting, Security
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Test!
• 6. Test
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Test!
• If no results are returned make sure that your links and default filter values are correct
• Count records or choose spot-check candidates to verify the IQA returns results you expect
• Paste SQL from first tab into SQL Management Studio (may require editing)
• 6. Test
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Save!
Congrats! Don’t lose your work. Use Save or
Save As… to create a copy.
• 7. Save
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Saving: Folders & naming
• Decide whether to store all IQAs inCustomers or spread out among individual iMIS modules
• Create and enforce an organizational folder (e.g. departmental, functional) and IQA naming strategy to easily find IQAs
• Create a policy among designers to make copies when they are significantly modifying an IQA – leave original for current uses
• 7. Save
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Saving: Folders & naming
• Well thought-out folders and naming scheme give more context to IQA titles
• Use the description field when creating/updating for historical notes (unfortunately only visible to designers, not end users)
• 7. Save
NiUG Discove
ryOrlando, FL
April 16-18, 2012
IQA Examples
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Creating a Basic IQA Step-by-Step
• Query editor mode shown: “Basic” • Scenario:
Search for all members in New York state
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
What if…
• We want to add criteria: “who’s attended a past event”
• Add a second business object
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Add more criteria
• Add ‘meeting’ as activity type• Add date criteria too
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cs
Cs
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Double Rows…why?
• Customer registered for more than one event• We need a way to return only unique records…
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Does Not Exist Relationship
• Still in Basic Mode Does not exist relationship Helps identify who hasn’t done something
• Scenario Which of my active members have never attended an
event?
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
If we run this now
• We’ll see: Constituent records with no activities at all
• We need to add filters Which constituent Which activities
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Adds – which Active Constituents have no activities?
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Adds – with no event activities?
Other activities are included
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Advanced Mode
• Alias field names• Linkable in module searches• Aggregate Queries
• Let’s take our basic query and add additional information
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cheat Sheets
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cheat Sheet: ASI IQA Reference
http://docs.imis.com/15.2/iqaqueries.htm
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cheat Sheet: Activity Table (1/2)
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cheat Sheet: Activity Table (2/2)
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cheat Sheet: Addresses
http://docs.imis.com/15.2/commonaddressjoins.htm
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Cheat Sheet: Tables/Joins
http://docs.imis.com/15.2/index.htm?turl=commonreporttablesandjoins.htm
NiUG Discove
ryOrlando, FL
April 16-18, 2012
Support IQA!advsol.com > Support > Tech Support > Support Request