Title: Creating Custom Views in Horizon
1Creating Custom Views in Horizon
- Presented by
- Gem Stone-Logan
- IT Application Engineer,
- Weld Library District
- gstone-logan_at_weld.lib.co.us
- at Colorado Horizon User Group meeting on May 29,
2007
2What we will cover
What are MQ Views Parts of a MQ View Basic
Editing Creating Alternate Views Creating MQ
Views from Scratch Securing MQ Views
3MQ Views
What are MQ Views? What can they do?
4Warnings!
- SirsiDynix considers MQ Views to be custom work.
Thus, if you mess up, theyll probably charge you
to fix the problem. - If possible, test your custom views in a
training or test database before changing the
production Horizon database. - SirsiDynix recommends making sure that your
custom MQ Views are read only. - Dont change existing SirsiDynix views. Instead,
copy them and then create alternative view sets.
5Opening an MQ View
6Opening an MQ View
7Opening an MQ View
8Opening an MQ View
9Parts of the MQ View Screen
General Information
10Parts of the MQ View Screen
General Information (continued)
11Parts of the MQ View Screen
List View
12Parts of the MQ View Screen
Edit View
13Parts of the MQ View Screen
Edit Links
14Parts of the MQ View Screen
Column Types
If Horizon didnt provide a translation for dates
and other fields, the date for an item created on
April 7, 1988 would appear as the number 6671
instead of a human readable date like 04/07/88.
15Parts of the MQ View Screen
Values
16Basic Editing of an MQ View
Displaying a column by default
17Basic Editing of an MQ View
Changing the default number of characters that
display
18Creating Alternate Views
Copying an existing view pt 1
19Creating Alternate Views
Copying an existing view - pt 2
20Creating Alternate Views
Copying an existing view - pt 3
21Creating Alternate Views
Creating a View Set pt 1
22Creating Alternate Views
Creating a View Set pt 2
23Creating Alternate Views
Creating a View Set pt 3
24Creating Alternate Views
Creating a View Set pt 4
25Creating an MQ View from Scratch
Creating an SQL View pt 1
- Before creating an SQL View be aware that . . .
- SirsiDynix will not support any custom SQL views
you create or tables/views you accidentally
delete. - You should be comfortable creating SQL queries
- You will need SQL Advantage or some other program
to connect to your database.
26Creating an MQ View from Scratch
Creating an SQL View pt 2
Example SQL Query SELECT isbn,bib, count()
duplicates FROM isbnex_inverted GROUP BY isbn
HAVING count() gt 1
27Creating an MQ View from Scratch
Creating an SQL View pt 3
Syntax of an SQL View CREATE VIEW view name you
pick AS select statement you created
previously Example Creation of a View CREATE
VIEW isbn_duplicates_gs AS SELECT isbn,bib,
count() duplicates FROM isbnex_inverted
GROUP BY isbn HAVING count() gt 1
28Creating an MQ View from Scratch
Creating an SQL View pt 4
Granting Permissions for Horizon Users to See the
View GRANT ALL ON view name you picked
TO user group Example GRANT ALL ON
isbn_duplicates_gs TO staffgroup
29Creating an MQ View from Scratch
Creating an MQ View pt 1
30Creating an MQ View from Scratch
Creating an MQ View pt 2
31Creating an MQ View from Scratch
Creating an MQ View pt 3
32Creating an MQ View from Scratch
Creating an MQ View pt 4
33Creating an MQ View from Scratch
Creating an MQ View pt 5
34Creating an MQ View from Scratch
Finding a newly created MQ View pt 1
35Creating an MQ View from Scratch
Finding a newly created MQ View pt 2
36Creating an MQ View from Scratch
Finding a newly created MQ View pt 3
37Creating an MQ View from Scratch
Finding a newly created MQ View pt 4
38Creating an MQ View from Scratch
Dropping MQ Views and SQL View
- IMPORTANT
- Do not drop an SQL View or delete a MQ View
unless you know EXACTLY what you are doing.
Dropping or deleting an incorrect view can cause
Horizon to stop functioning.
39Creating an MQ View from Scratch
Dropping MQ Views and SQL View
40Creating an MQ View from Scratch
Dropping MQ Views and SQL View
Syntax of dropping an SQL View DROP VIEW view
name you pick Example Dropping an SQL
View DROP VIEW isbn_duplicates_gs
41Securing MQ Views
Securing MQ Views pt 1
42Securing MQ Views
Securing MQ Views pt 2
43Securing MQ Views
Securing MQ Views pt 5
44Securing MQ Views
Securing MQ Views pt 6
45Securing MQ Views
Securing MQ Views pt 7
46Securing MQ Views
Securing MQ Views pt 8
47Additional Resources
- Any Questions? Please email me at
- gstone-logan_at_weld.lib.co.us
- A copy of this presentation is located at
http//www.mylibrary.us/about_my_library/MQViewPre
sentation.ppt - Eric Grahams 2005 CODI Presentation includes
some information on MQ Views http//customer.dyni
x.com/usergroups/conf/us/2005/files/let_sql_do_all
_dirty_work-eg.doc pages 38-44 - SirsiDynixs System Administrators Guide for
Horizon 7.3 includes a chapter on Introduction
to Horizon Views