Indigo DRS Data Reporting System Indigo DRS
Report Rules Indigo DRS Help

Report Conditional Rules determine if Report Content is displayed or not. Report Rules are XQuery or Python statements that return True or False and determine if Content is Enabled depending on the Report Data Source. Report Rules are useful for controlling the flow of Report Content.

To Add or Edit a Report Rule click on the Report Treeview and select the Rule Node.

Rules can be applied to all Report Items allowing flexible conditional control of Report Content. By Default if empty the Rule will always be True.

XQuery is a query and functional programming language that is designed to query and transform collections of structured and unstructured data, usually in the form of XML (Extensible Markup Language).

IronPython can use the .NET Framework and Python libraries, and other .NET languages can use Python code just as easily. Python Scripting can be used to Query Report Data and create Report Contexts.

Content Types

The Report Rule Content Type can be either a Literal or a File. If the Content Type is a File the Content for the Report Rule is read from the specified URI.

Value Types

The URI Query for the Report Rule can be a series of XQuery or Python statements to specify the location of the File URI. If the Value Type is a literal the File location will be determined from the URI property. If the Value Type is Query the File location will be determined from the URI Query.

Query Fields

Report Rules can also contain Fields within Fields which can be used to substitute Content in the Report Query. XQuery and / or XSLT, Python can be used in Report Fields and provides the means to extract and manipulate data from a report data source.

Namespaces

XML namespaces are used for providing uniquely named elements and attributes. If the Data Source contains Namespaces they can be applied to the XQuery Processor.