LinkIndexPrint
Contents
 Welcome
    Ask MaxiPlan
 Using Cascade Planning
    Data Entry Shortcuts
 Working with Planning Projects
    Designing A Cascade Project
    Project Management
       Creating and Maintaining Projects
       Period Sets
       Currencies
       Creating A Splash Screen
       Allowing Other Users Access
       Backup and Restore
       Virtual Period Definition
       Deployment Alias
       Publish Documents
       Project Status
    Building an Application
       Building Application Models
          Building A Cube Model
             Basic Setup
             Selecting a Period Set
             Measure Settings
                Defining the Measures List
                Setting Measure Attributes
                Measure Formatting
                Defining Calculations for Measures
                Other Functions for Measures Editor
                Cross Referencing Measures
                   Dimension Order in Planning Models
                   Cross Referencing Within The Same Model
                   Cross Referencing to Another Model Cube
                   Cross Referencing to the Parent of the node
                Measure Logic Functions
                   PREVIOUS function
                   SUM function
                   MAX function
                   MIN function
                   DEPRECIATION function
                   INT function
                   ROUND function
                   ROUNDUP function
                   ROUNDDOWN function
                   IF Function
                   SWITCH Function
             Dimension Settings
                Defining Dimension Lists
                Defining Dimension Properties
             Miscellaneous
             Finishing The Model
             Advanced Features
                Specifying Consolidation Logic
          Building A Transaction Model
             Basic Set Up
             Defining Dimension Lists 
             Defining Transaction Model Fields
             Additional Definition for a List Field
             Additional Definition for an Expression field
             Additional Definition for a Lookup Field
             Optional Validation for Text, Date, Integer & Value Field
             Defining Field Format & Access
             Miscellaneous
       Model Flow and Linking Models
          Using Links (the 'Push' Method)
          Cross Referencing (the 'Pull' Method)
       Deployment and Workflow
          Deploying Models for Input and Review
          Allowing Users to Extend Models
          Setting up and Managing Workflow
          Workflow for Users
       Advanced Project Functions
          Measure Filters
          Jobsets
             Defining A Jobset
             Run Jobsets
          Data Integration
             Create Dynamic Model
             Import to Cube
             Import to Transaction
             Export Cube Data
          Maintenance
             Model Maintenance
             Link Maintenance
             List Maintenance
             Calculate all cubes
             Versions
          Pre/Post Rules
 Reports and Scripting
    Define Scripts
    Define Reports
    Publish Documents
    Manage Scripts


Home > Reports and Scripting > Define Scripts

Define Scripts

Last Updated 5/28/2012 10:29 PM
The Define Scripts function provides a script editor for both report and application scripts. To create a new report script select the Create Script option:


This will open a script editor. Enter a name for the script (alphanumeric characters only and no spaces).


A Maxiplan report script comprises a sequence or reporting commands contained within a STARTREPORT/ENDREPORT block. For example the following script:

STARTREPORT
PROJECT 'ABC Group Demo'
MODEL 'Profit and Loss'
COLUMNWIDTH 150,1
COLUMNWIDTH 75,2-13
STYLE DATA DECIMALS 0
DROPLIST 'Countries'
ACROSS 'Period'
DOWN 'Measure'
HEADINGS
ROWS 'All'
ENDREPORT

Would produce a simple report showing the Profit and Loss Model with Periods across as columns and Measures down as rows and Countries as a selector:


  Note that the same report could also be delivered to Excel using the Maxiplan Reporter Add-In for Excel. You only need to define a report once and it can be delivered either to a web browser or to Excel.

A STARTREPORT/ENDREPORTER block of commands is simply a subset of the scripting language, and therefor can also contain scripting commands and functions which provide logic control, computational and the ability to read and write data.

More details on the Reporting commands and functions available can be found in the section, Basic Reporting Commands and advanced Reporting Functions.

More details on writing application scripts can be found in the separate help guide 'Writing Maxiplan Application Scripts'.

See also