Class Report
- Namespace
- PolarStudio
- Assembly
- PolarStudio.dll
This class contains a report as defined in Polar Reports.
public class Report : XMLobject<ReportEngine>
- Inheritance
-
Report
- Inherited Members
- Extension Methods
Fields
DesignSettings
Gets/sets the design settings. This is a string containing the html classes for various elements, like: TableClasses=table table-striped HeadingClassGroup= HeadingClassColumn= HeadingClassRow= HeadingClassColumnRow= CellClass=
public string DesignSettings
Field Value
Properties
AutoShow
Gets/sets a boolean indication to instantly show the results (without the need for the user to press the 'show' button).
public bool AutoShow { get; set; }
Property Value
Caption
Gets/sets the caption
public string Caption { get; set; }
Property Value
CategoryGuid
Gets/sets the guid for the category to use.
public string CategoryGuid { get; set; }
Property Value
ChartCaption
Gets/sets the chart caption of the chart.
public string ChartCaption { get; set; }
Property Value
ChartCustomizations
A custom script that can customize the chart.
public string ChartCustomizations { get; set; }
Property Value
ChartType
Gets/sets the chart type.
public string ChartType { get; set; }
Property Value
Columns
Returns the columns.
public XMLcollection<ReportEngine, ReportColumn> Columns { get; }
Property Value
ConnectionGuid
Gets/sets the guid for the connection to use.
public string ConnectionGuid { get; set; }
Property Value
CrossTabColumnHeaders
Gets/sets the column headers for a cross-tab report.
public string CrossTabColumnHeaders { get; set; }
Property Value
CrossTabReport
Gets/sets if the report is a cross-tab report.
public bool CrossTabReport { get; set; }
Property Value
CrossTabRowHeaders
Gets/sets the row headers for a cross-tab report.
public string CrossTabRowHeaders { get; set; }
Property Value
CustomModuleAutoIndent
Gets/sets if the custom module should automatically fix the indenting when saved by the user.
public bool CustomModuleAutoIndent { get; set; }
Property Value
CustomModuleCompileError
Returns a compile error for the custom module if applicable.
public string CustomModuleCompileError { get; }
Property Value
CustomModuleSourceCode
Gets/sets the source code of the custom module
public string CustomModuleSourceCode { get; set; }
Property Value
CustomModuleTestExpression
Gets/sets the expression to test the custom module.
public string CustomModuleTestExpression { get; set; }
Property Value
Description
Gets/sets the description.
public string Description { get; set; }
Property Value
EnvelopMain
Gets/sets the main (first page) html envelope to create the report.
public string EnvelopMain { get; set; }
Property Value
EnvelopSub
Gets/sets the sub (second and further pages) html envelope to create the report.
public string EnvelopSub { get; set; }
Property Value
ExportSelectedColumnsOnly
Gets/sets a boolean to indicate to only export the marked columns.
public bool ExportSelectedColumnsOnly { get; set; }
Property Value
Filters
Returns the filters.
public XMLcollection<ReportEngine, ReportFilter> Filters { get; }
Property Value
FontRotation
Gets/sets the rotation of the font in degrees of the captions shown at the x axis of the chart.
public int FontRotation { get; set; }
Property Value
GroupPIDs
Gets/sets the group PID's for which this report is visible. Empty means visible for all groups. The PID's are separated by semi-colons.
public string GroupPIDs { get; set; }
Property Value
LegendColumns
Gets/sets the max number of columns to show in the ledgend of the chart.
public int LegendColumns { get; set; }
Property Value
LegendPosition
Gets/sets the position of the ledgend of the chart (N, E, S, W, '')
public string LegendPosition { get; set; }
Property Value
LegendRows
Gets/sets the max number of rows to show in the ledgend of the chart.
public int LegendRows { get; set; }
Property Value
Notes
Gets/sets the notes.
public string Notes { get; set; }
Property Value
NumberOfFirstColumns
Returns the number of header-columns at the left of the report.
public int NumberOfFirstColumns { get; set; }
Property Value
Parameters
Returns the parameters.
public XMLcollection<ReportEngine, ReportParameter> Parameters { get; }
Property Value
Published
Gets/sets a boolean indicating the report is published (available for the user).
public bool Published { get; set; }
Property Value
Query
Gets/sets the query.
public string Query { get; set; }
Property Value
RecordCount
Returns the number of records to show on one page.
public int RecordCount { get; set; }
Property Value
ScaleMax
Gets/sets the max of the scale of the chart.
public object ScaleMax { get; set; }
Property Value
ShowInMenu
Gets/sets a boolean indicating the reports must be included in the menu of reports.
public bool ShowInMenu { get; set; }
Property Value
SizeX
Gets/sets the width of the chart in pixels.
public int SizeX { get; set; }
Property Value
SizeY
Gets/sets the height of the chart in pixels.
public int SizeY { get; set; }
Property Value
SubReports
Returns the sub reports.
public XMLcollection<ReportEngine, ReportSubReportDefinition> SubReports { get; }
Property Value
VisibleScript
Gets/sets a script to determine if this report is visible.
public string VisibleScript { get; set; }
Property Value
XML
Returns the XML for this report.
public XmlNode XML { get; }
Property Value
XMLdataNodeName
Gets/sets the node name of the xml data.
public string XMLdataNodeName { get; set; }
Property Value
XaxisCaption
Gets/sets the caption of the x axis of the chart.
public string XaxisCaption { get; set; }
Property Value
XaxisSpacing
Gets/sets the additional spacing of the captions on the x axis of the chart.
public object XaxisSpacing { get; set; }
Property Value
YaxisCaption
Gets/sets the additional spacing of the captions on the y axis of the chart.
public string YaxisCaption { get; set; }
Property Value
YaxisSpacing
Gets/sets the additional spacing of the captions on the x axis of the chart.
public object YaxisSpacing { get; set; }
Property Value
Methods
CreateReport(Context, string, ref string, ref string, bool, string, string, int, string, bool, string)
This method creates the html or text result for this report.
public string CreateReport(Context pContext, string pReportType, ref string pErrorMessage, ref string pLastExecutedQuery, bool pLimitResultSet, string pParentReportGUID = "", string pSubReportGUID = "", int pLineNumber = 0, string pAdditionalWhere = "", bool pForceAsSubReport = false, string pContainerReportPaths = "")
Parameters
pContext
ContextThe context.
pReportType
stringThe type of report to get. Use one of: 'HTML', 'XML', 'TEXT', 'EMAIL', 'EXCEL'
pErrorMessage
stringA by-ref parameter that will be set to an error message if applicable.
pLastExecutedQuery
stringA by-ref parameter that contains the last executed query.
pLimitResultSet
boolA boolean indicating to limit the number of returned records to 1000.
pParentReportGUID
stringThe GUID of the parent report.
pSubReportGUID
stringThe GUID of the sub-report.
pLineNumber
intThe line number.
pAdditionalWhere
stringAn additional where.
pForceAsSubReport
boolA boolean to force the report to be rendered as sub report.
pContainerReportPaths
stringA string with paths for container reports. Leave empty.
Returns
- string
The text for the given type representing the report.
Eval(string, Context)
Evaluates a script expression against the custom module of this report.
public object Eval(string pExpression, Context pContext = null)
Parameters
Returns
- object
The result of the evaluation.
GetCategory()
Returns the category.
public ReportCategory GetCategory()
Returns
- ReportCategory
The catogory (or Nothing)
GetConnectionString(Context)
Returns the connection string to use for the query of this report.
public string GetConnectionString(Context pContext)
Parameters
pContext
ContextThe context.
Returns
- string
The connection string.
GetDataConnector(Context)
Returns a data connector to use for the query of this report.
public DataConnector GetDataConnector(Context pContext)
Parameters
pContext
ContextThe context.
Returns
- DataConnector
A data connector.
ReportAllowed(Context)
Returns a boolean indicating if this report is allowed for the given context.
public bool ReportAllowed(Context pContext)
Parameters
pContext
ContextThe context.
Returns
- bool
True if allowed.
ReturnParameterPopupSelectItemData(Context, Control, int, string, string)
Used internally
public object ReturnParameterPopupSelectItemData(Context pContext, Control pControl, int pMaxRecordCount, string pFilter, string pParameterName)
Parameters
Returns
SynchronizeColumns(Context)
This method synchronizes the columns with the query as set for this report.
public string SynchronizeColumns(Context pContext)
Parameters
pContext
ContextThe context.
Returns
- string
An error message if applicable.