Xbasic

Reporting::ReportDataGenerate Class

Description

JSON and Excel Report generator

Properties

NameCharacter

Type "C". Name of report. String Name property

SourceCharacter

Type "C". Source data definiton. String Source property

CalcsCharacter

Type "C". CR-LF separate list of Calcuated Field Definitons.

ParametersCharacter

Type "C". Named parameters.

grandReportDataGroup

Type "ReportDataGroup". Pointer to the top level JSON group.

Reporting::ReportDataGroup Class
Arguments

Type "SQL::Arguments". SQL Arguments to pass use during the generation of JSON data.

ExcelTemplate

Type "ReportExcelTemplate". Excel formatting template (expresses how to generate the excel).

Methods

AddSubReport Method

Add JSON Subreport Definition (json objects should reference these for linked subreports).

ApplyOrder Method

Apply an order (modify definition to include added order at detail level).

GenerateExcel Method

Generate data to an excel spreadsheet.

GenerateJson Method

Generate Data data for defined report.

GenerateRawData Method

Emits the raw data of the report.

GetCurrentFilter Method

Expand the current filter for the report object.

GetDefinition Method

Get JSON for definition of report generation object.

Populate Method

Populate using a JSON definition.

SetParentSession Method

Sets the parent session so that global context can be shared with generated reports.

See Also