2using System.Threading.Tasks;
17 private readonly
int nrColumns;
30 List<TableColumn> TableColumns =
new List<TableColumn>();
32 foreach (XmlNode N
in Xml.ChildNodes)
34 if (N is XmlElement E && E.LocalName ==
"Column")
38 this.columns = TableColumns.ToArray();
39 this.nrColumns = this.columns.Length;
49 string TableId = await this.tableId.Evaluate(State.
Variables);
50 string Name = await this.name.Evaluate(State.
Variables);
55 for (i = 0; i < this.nrColumns; i++)
56 Columns[i] = await this.columns[i].Evaluate(State);
Creates a table in the report
override async Task< bool > Execute(ReportState State)
Executes the report action.
CreateTable(XmlElement Xml, ReportFile Report)
Creates a table in the report
Defines a column in a table.
Abstract base class for report actions.
ReportFile Report
Parsed report containing the report action.
Contains a parsed report, as defined in a report file.
Class containing the state of a report.
Variables Variables
Current set of variables.
Query Query
Current query object reference.
Defines a column in a table.
Task NewTable(string TableId, string TableName, params Column[] Columns)
Defines a new table in the query output.