creating custom views in horizon presented by gem stone-logan it application engineer, weld library...
TRANSCRIPT
Creating Custom Views in Horizon
Presented byGem Stone-Logan
IT Application Engineer, Weld Library District
at Colorado Horizon User Group meeting on May 29, 2007
What 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
MQ Views
What are MQ Views?
What can they do?
Warnings!
•SirsiDynix considers MQ Views to be custom work. Thus, if you mess up, they’ll 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.
•Don’t change existing SirsiDynix views. Instead, copy them and then create alternative view sets.
Opening an MQ View
Opening an MQ View
Opening an MQ View
Opening an MQ View
Parts of the MQ View ScreenGeneral Information
Parts of the MQ View ScreenGeneral Information (continued)
Parts of the MQ View ScreenList View
Parts of the MQ View ScreenEdit View
Parts of the MQ View ScreenEdit Links
Parts of the MQ View Screen
If Horizon didn’t 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.
Column Types
Parts of the MQ View ScreenValues
Basic Editing of an MQ ViewDisplaying a column by default
Basic Editing of an MQ ViewChanging the default number of characters that display
Creating Alternate ViewsCopying an existing view – pt 1
Creating Alternate ViewsCopying an existing view - pt 2
Creating Alternate ViewsCopying an existing view - pt 3
Creating Alternate ViewsCreating a “View Set” – pt 1
Creating Alternate ViewsCreating a “View Set” – pt 2
Creating Alternate ViewsCreating a “View Set” – pt 3
Creating Alternate ViewsCreating a “View Set” – pt 4
Creating an MQ View from ScratchCreating 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.
Creating an MQ View from ScratchCreating an SQL View – pt 2
Example SQL Query
SELECT isbn,bib#, count(*) duplicates FROM isbnex_inverted GROUP BY isbn HAVING count(*) > 1
Creating an MQ View from ScratchCreating 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(*) > 1
Creating an MQ View from ScratchCreating 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
Creating an MQ View from ScratchCreating an MQ View – pt 1
Creating an MQ View from ScratchCreating an MQ View – pt 2
Creating an MQ View from ScratchCreating an MQ View – pt 3
Creating an MQ View from ScratchCreating an MQ View – pt 4
Creating an MQ View from ScratchCreating an MQ View – pt 5
Creating an MQ View from ScratchFinding a newly created MQ View – pt 1
Creating an MQ View from ScratchFinding a newly created MQ View – pt 2
Creating an MQ View from ScratchFinding a newly created MQ View – pt 3
Creating an MQ View from ScratchFinding a newly created MQ View – pt 4
Creating an MQ View from ScratchDropping 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.
Creating an MQ View from ScratchDropping MQ Views and SQL View
Creating an MQ View from ScratchDropping 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
Securing MQ ViewsSecuring MQ Views – pt 1
Securing MQ Views – pt 2
Securing MQ Views
Securing MQ Views – pt 5
Securing MQ Views
Securing MQ Views – pt 6
Securing MQ Views
Securing MQ Views – pt 7
Securing MQ Views
Securing MQ Views – pt 8
Securing MQ Views
Additional Resources
•Any Questions? Please email me at [email protected]
• A copy of this presentation is located at: http://www.mylibrary.us/about_my_library/MQViewPresentation.ppt
• Eric Graham’s 2005 CODI Presentation includes some information on MQ Views: http://customer.dynix.com/usergroups/conf/us/2005/files/let_sql_do_all_dirty_work-eg.doc pages 38-44
•SirsiDynix’s System Administrator’s Guide for Horizon 7.3 includes a chapter on “Introduction to Horizon Views”