12.07.2015 Views

Using Zen Reports - InterSystems Documentation

Using Zen Reports - InterSystems Documentation

Using Zen Reports - InterSystems Documentation

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

XData ReportDefinitionAttributeexpressionDescriptionAn ObjectScript expression that processes the field value before outputtingit. Within the expression, the %val variable represents the field value. If youuse the %val variable in the expression, the field attribute is required tosupply a value for %val.The following example would work in a <strong>Zen</strong> report class that defined aGetDisplayURL method with one input argument:The expression attribute can be used without %val to return static data,such as the report run time in the following example:fieldSpecifies which field in the resultset to get the data from. Theresultset in question is the one returned by the query for this .The referenced field must actually exist in the resultset. An getsits resultset from the closest query among its ancestors in the XDataReportDefinition block. This is either:• The query for the or that contains the or:• The query inherited by the that contains the . Thishappens when the that contains the does not providea query of its own and instead inherits its query from the nearestancestor or . In this case, the may referenceany field in the inherited resultset, just as if the query were defined atthe same level as the that contains the .nameGenerates an XML element of this name in the output. Suppose there is afield called month in the resultset for the or that containsthis , and suppose one of the valid values for month is the stringJuly. An entry like this:Could yield an element like this in the XML that defines the data for thereport:July24 <strong>Using</strong> <strong>Zen</strong> <strong>Reports</strong>

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!