Custom-Defined Calculation Function Examples


Overview

To get you started in creating custom-defined functions for the Hyperion Essbase calculator, a set of example statistical functions is provided with this release. These examples are compiled and included in the essbase.jar file, located in the ARBORPATH\java\ directory.

For more information about creating custom-defined functions, see the Database Administrator's Guide.

Java Code Examples

The Java code for examples of custom-defined functions is provided in the file statisti.jav. This file can be viewed in any text editor. For more information about the classes, methods, and constants in the statisti.jav file, see the documentation for the Hyperion Essbase Statistics Java package.

The code contained in the statisti.jav file is implemented in the ARBORPATH\java\essbase.jar file. The examples in the statisti.jav file use constants which are defined in the essbase.jar file. To use the constants defined in these examples, you must import the Calculator class constants defined in the essbase.jar file.

MaxL Registration Scripts

Sample scripts for registering and dropping the example custom-defined functions are provided in the following files:

register.mxl - to register the functions locally in an application
drop.mxl - to drop the functions (if they were registered locally)
reglobal.mxl - to register the functions globally

These files can be viewed in any text editor. For more information about running MaxL scripts, see the MaxL Language Reference. For more information about registering custom-defined functions, see the Database Administrator's Guide.

Copyright 1991-2002 Hyperion Solutions Corporation. All rights reserved.