Report objects

<< Click to Display Table of Contents >>

Navigation:  Delphi HTML Report Library >

Report objects

In addition to passing objects to report via AddVariable, objects can be defined inside report.

<report-objects>
  <object name="cust" sql="select * from customer" type=""/>
</report-objects>

Object attributes:

name - variable name

type - adapter type

sql - query

value - expression

requires - required template variable. If this variable is empty, exception will be raised.

requires-message - custom message for "requires" exception.

Script

Object also has optional script node.
For detailed description of script syntax and available functions please refer to the HTML Scripter documentation.

Script has the following predefined variables:

<all variables defined by Report.AddVariable and generated by datapackets>

report : THtReport - report object

context: THtXMLNode - report context

adapter : THtSQLAdapter - current SQL adapter