Search icon
Arrow left icon
All Products
Best Sellers
New Releases
Books
Videos
Audiobooks
Learning Hub
Newsletters
Free Learning
Arrow right icon
Oracle Hyperion Interactive Reporting 11 Expert Guide

You're reading from  Oracle Hyperion Interactive Reporting 11 Expert Guide

Product type Book
Published in Dec 2011
Publisher Packt
ISBN-13 9781849683142
Pages 276 pages
Edition 1st Edition
Languages

Table of Contents (18) Chapters

Oracle Hyperion Interactive Reporting 11 Expert Guide
Credits
About the Authors
Acknowledgments
About the Reviewers
www.PacktPub.com
PacktLib.PacktPub.com
1. Preface
1. Advanced Hyperion Interactive Reporting Techniques 2. Introduction to JavaScript and the Interactive Reporting API 3. Creating a Simple Dashboard 4. Introducing Dashboard Interactivity 5. Building the Dashboard Framework 6. Advanced Dashboard Techniques 7. Advanced Data Analysis 8. Creating Briefing Slides and Executing Batch Exports 9. The Central Code Repository 10. Optimizing and Merging

Chapter 9. The Central Code Repository

One challenge that advanced users encounter with Interactive Reporting's report-centric model is the tracking and maintenance of heavily customized dashboard reports, especially in enterprise-level implementations where code is used repetitively and transparently across multiple documents. Given the common and straightforward practice of storing similar JavaScript code within each document in an enterprise, it is incredibly difficult and infeasible to individually identify, track, and edit changes across documents.

One simple and invaluable methodology is to store report customization scripts in an accessible database table within the enterprise environment. This script table, referred to as the Central Code Repository (CCR), is an external reporting library that allows code to be quickly pushed into some or all documents in an enterprise...

Understanding the Central Code Repository


The Central Code Repository (CCR) is a database model created for Hyperion Interactive Reporting that allows the storage, management, and implementation of a centralized code base. The repository is purely a custom developed database table or set of database tables created by development and business users to effectively leverage and maintain JavaScript code statements and variables across multiple Interactive Reporting documents. The tables are maintained by the development and user community, and the table must exist in a centralized location that is accessible by the Interactive Reporting documents using code from the developed solution. Below is a conceptual diagram of the use of the CCR across multiple Interactive Reporting documents:

Changes made to the code database tables are efficiently managed within...

Configuring the CCR code table and query


With the report code now stored in the CCR code table in the database, BQY documents can query the table and then evaluate the code that is stored in the table. The image below shows the CCR workflow within the Interactive Reporting document.

When the document is first opened, the query to retrieve the code from the CCR code database is processed during the document start-up process. Once the query results are retrieved, the results from the code column are then looped through the JavaScript eval() function to declare the functions and variables or to execute code statements.

Note

Store any code statements commonly used in user interface modifications, including hiding or unhiding toolbars, menus, and other interface components in the CCR.

Querying the Central Code Repository (CCR)

Each Interactive...

Building the Global Code Dashboard


In order for any section of the Interactive Reporting document to access functions stored in the CCR, the functions need to be globally declared as part of the document start-up process. If the necessary code was directly assigned to the document object's OnStartup event, the code would be run when the document was opened before any other actions were performed by the client. While this would ensure the functions are declared before any report object attempts to call them, code errors, such as an infinite for loop, will cause the document to become unstable and irrevocably corrupt. To avoid this hazard, use the techniques explained in Chapter 5, Building the Dashboard Framework to alternatively mange the document start-up processes.

Creating the Global Code Dashboard

Once the query is configured...

Advanced concepts


With an understanding of the concepts discussed and the demonstration of the simple example, the following topics are ideas for how the Centralized Code Repository can be enhanced in an enterprise implementation.

Report Type Grouping

Different report types such as ad-hoc, dashboard, or canned typically have vastly different business requirements that are addressed with code unique to the report type. The addition of a Report Type column in the CCR code table and a Report Type filter on the CCR Query section allows management of code within a subsection of reports. This concept also lends well to creating sub-libraries by a business unit to address differing functional requirements across user groups in an enterprise implementation.

Enterprise Object Library

The idea behind an Enterprise Object Library is to prepare code and...

Summary


The goal of this chapter was to provide the developers and users of Interactive Reporting with an approach to creating a Central Code Repository to programmatically push code into Interactive Reporting documents. The chapter began with an introduction to the concepts of the CCR, where the approach and configuration of the repository and database tables were discussed. The chapter continued with a simple example implementation, where the configuration of the query, dashboard, and code was demonstrated to provide the steps to implement the repository in an environment. Topics including best practices in code placement and error checking through the Console Window were discussed to assist with reducing failures and troubleshooting the implementation. Finally, advanced concepts for enhancing the CCR were introduced to describe...

lock icon The rest of the chapter is locked
You have been reading a chapter from
Oracle Hyperion Interactive Reporting 11 Expert Guide
Published in: Dec 2011 Publisher: Packt ISBN-13: 9781849683142
Register for a free Packt account to unlock a world of extra content!
A free Packt account unlocks extra newsletters, articles, discounted offers, and much more. Start advancing your knowledge today.
Unlock this book and the full library FREE for 7 days
Get unlimited access to 7000+ expert-authored eBooks and videos courses covering every tech area you can think of
Renews at €14.99/month. Cancel anytime}