varlena ere: How it Works: Runtime


Overview

Requirements

Examples

How It Works

Design Structure

Tags

Design a Report

Variables

Built-in Arguments

Debugging

Using CSV files

Tricks

Copyright

Reports Home

How it Works: Runtime

The report file and name=value styled parameters are the command line parameters.
	$ ere.pl myreport date=11/16/2003 debug=1 
ere looks for the named report in the current or specified directory with with an .xml or .ere. suffix. Other than the report name all aguments are in name=value form. There are a set of built-in arguments and the developer of the report may require others.

ere opens the report and parses it. Then it runs the query or queries and populates the report according to the template area/break specifications.

The output of the report goes to STDOUT. Optionally a debug and/or a csv (comma separated value) file are created during the run of the report. See Built-in Arguments for how to specify the locations of the debug and csv files. The CSV file capabilities are currently deprecated.

You may also want to wrap ere into a script which manages where output files are directed and prompts users for report specific variables. A sample shell script called runre is included.

ere is easy to invoke from web applications to run dynamic reports. There is a sample application called rerun available to drive your reports prompting and execution based on PostgreSQL tables.

ere generating a report

Copyright 2003 through 2009 A. Elein Mustain, Varlena, LLC