470 likes | 689 Views
Creating Custom Views in Horizon. Presented by Gem Stone-Logan IT Application Engineer, Weld Library District gstone-logan@weld.lib.co.us 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
E N D
Creating Custom Views in Horizon Presented by Gem Stone-Logan IT Application Engineer, Weld Library District gstone-logan@weld.lib.co.us 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.
Parts of the MQ View Screen General Information
Parts of the MQ View Screen General Information (continued)
Parts of the MQ View Screen List View
Parts of the MQ View Screen Edit View
Parts of the MQ View Screen Edit Links
Parts of the MQ View Screen Column Types 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.
Parts of the MQ View Screen Values
Basic Editing of an MQ View Displaying a column by default
Basic Editing of an MQ View Changing the default number of characters that display
Creating Alternate Views Copying an existing view – pt 1
Creating Alternate Views Copying an existing view - pt 2
Creating Alternate Views Copying an existing view - pt 3
Creating Alternate Views Creating a “View Set” – pt 1
Creating Alternate Views Creating a “View Set” – pt 2
Creating Alternate Views Creating a “View Set” – pt 3
Creating Alternate Views Creating a “View Set” – pt 4
Creating 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.
Creating 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(*) > 1
Creating 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(*) > 1
Creating 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
Creating an MQ View from Scratch Creating an MQ View – pt 1
Creating an MQ View from Scratch Creating an MQ View – pt 2
Creating an MQ View from Scratch Creating an MQ View – pt 3
Creating an MQ View from Scratch Creating an MQ View – pt 4
Creating an MQ View from Scratch Creating an MQ View – pt 5
Creating an MQ View from Scratch Finding a newly created MQ View – pt 1
Creating an MQ View from Scratch Finding a newly created MQ View – pt 2
Creating an MQ View from Scratch Finding a newly created MQ View – pt 3
Creating an MQ View from Scratch Finding a newly created MQ View – pt 4
Creating 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.
Creating an MQ View from Scratch Dropping MQ Views and SQL View
Creating 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
Securing MQ Views Securing MQ Views – pt 1
Securing MQ Views 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
Additional Resources • Any Questions? Please email me at • gstone-logan@weld.lib.co.us • 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”