Class Reference
%ZEN.Report.Display.node
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%ZEN] >  [Report] >  [Display] >  [node]
Private  Storage

class %ZEN.Report.Display.node extends controller, %XML.Adaptor

Base class for all nodes in the ReportDisplay XData block.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
3 16 23


Summary

Properties
class composite htmlstyle id
ifexpression ifxpath includeColIfExpression includeColIfXPath
includeColUnlessExpression includeColUnlessXPath selectstylecond selectstylelist
style stylecall styleparamNames styleparams
tag template unlessexpression width
withinSmallmultiple xmlnamespace xmlnamespaceprefix xpath
xslfostyle

Methods
%%OIDGet %AddToSaveSet %ApplyClass %ApplyLevelParameters
%ClassIsLatestVersion %ClassName %ConstructClone %DeclareLevelParameters
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %DrawToHTML
%DrawToXSLFO %EndLevel %Extends %GetAbsoluteURL
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%QuoteValue %QuoteValueEmbedded %QuoteValueL10N %RemoveFromSaveSet
%SerializeObject %SetModified %StyleHTML %StyleXSLFO
%ValidateObject ApplyClass CSPLinkToFileLink CountSpaces
DoDocForHTML GetDocForXSLFO HTMLStyle OutputId
XMLDTD XMLExport XMLExportToStream XMLExportToString
XMLNew XMLSchema XMLSchemaNamespace XMLSchemaType
XSLFOStyle insertAxis isCSPLink needsURL
parent processExclamationPoint qualify tagGet

Subclasses
%ZEN.Report.Display.COSChart.cchart %ZEN.Report.Display.Chart.axis %ZEN.Report.Display.att
%ZEN.Report.Display.call %ZEN.Report.Display.callsvg %ZEN.Report.Display.childrenNode
%ZEN.Report.Display.contentNode %ZEN.Report.Display.cssinclude %ZEN.Report.Display.pagebreak
%ZEN.Report.Display.xslinclude %ZEN.Report.Display.xslt

Parameters

• parameter NAMESPACE = "http://www.intersystems.com/zen/report/display";
XML namespace used for Zen Report display definitions.
• parameter XMLIGNOREINVALIDATTRIBUTE = 0;
By setting this to 0, we disallow use of invalid attribute names in Zen Report XML documents.
• parameter XMLIGNORENULL = 1;
XMLIGNORENULL allows the programmer to override the default XML handling of empty strings for properties of type %String. By default (XMLIGNORENULL = 0), empty strings in the XML input are stored as $c(0) and $c(0) is written to XML as an empty tag. A missing tag in the XML input is always stored as "" and "" is always output to XML as no tag.

If XMLIGNORENULL is set = 1, then both missing tags in the XML and empty strings are input as "", and both "" and $c(0) are output as empty tags (i.e. <tag></tag>).

If XMLIGNORENULL is set = "inputonly", then both missing tags in the XML and empty strings are input as "". Output of "" and $c(0) are for XMLIGNORENULL = 0: $c(0) is output as an empty tag (i.e. <tag></tag>) and "" is output as no tag.

If XMLIGNORENULL = "runtime" (runtime is not case sensitive), then the behavior of XMLIGNORENULL is determined by the format parameter of XMLExport, XMLImport and %XML.Reader.OpenFile. The default behavior for XMLIGNORENULL="runtime is the same as XMLIGNORENULL=0. Adding "ignorenull" to the format argument changes the behavior to that of XMLIGNORENULL=1. "ignorenull" shoud be separated by a comma from literal/encoded part of the format. Example values for format are "", ",ignorenull", "literal,ignorenull" and "encoded,ignorenull". Note that "inputonly" is equivalent to using ,ignorenull for XMLExport and not for %XML.Reader.

Properties

• property class as %ZEN.Datatype.cssClass;
Specifies the node's style class. Some classes come pre-defined when standard styling is specified for the report, and custom classes may be define by the <class> tag within the <document> tag. Note: parent tags propagate their class attribute to their children if the child class does not have an explicit class defined. In HTML tags, class is rendered using the class attribtue, and in XSL-FO tags it is rendered using the xsl:use-attribute-set attribute. It is a fatal error to specify a class that is not defined. For more information on classes, see the tag.
• property htmlstyle as %ZEN.Datatype.style;
same as style only HTML only
• property selectstylecond as %ZEN.Datatype.string;
list of conditions - true one at index i selects style
• property selectstylelist as %ZEN.Datatype.string;
list of styles - picked by first true index i in list of conditions for more information about individual values in list see style property
• property style as %ZEN.Datatype.style;
The style string is given in the form "attribute1:value1;attribute2:value2;...", just as in CSS. In general, the style string is directly copied into HTML tags as the style attribute. In XSL-FO, each attribute is rendered separately. That is, the resulting HTML tag would look like <tag style='attribute1:value1;...'/> and the resulting XSL-FO tag would look like <tag attribute1='value1' ... />.
• property stylecall as %ZEN.Datatype.string;
stylecall - name of xsl:template to call to output style attributes
• property styleparamNames as %ZEN.Datatype.list(DELIMITER=";");
for each name here an xsl:with-param is generated with its name attribute set from here
• property styleparams as %ZEN.Datatype.list(DELIMITER=";");
list of xpaths, xpath function calls, and XSLT function calls. for each string here an xsl:with-param is generated with its select attribute set from here
• property tag as %String(XMLPROJECTION="none") [ Calculated ];
Calculated property that contains the tag name of the node. This corresponds to the classname.
• property template as %ZEN.Datatype.string;
Specifies the template that can be used to add children to the node The format is :
• property width as %ZEN.Datatype.length;
Specifies the width of the element within its containing object (page, table cell, etc.)
• property withinSmallmultiple as %Boolean(XMLPROJECTION="none") [ InitialExpression = 0 ];
used to flag table or item, etc., as being under a small mutiple
• property xmlnamespace as %String(XMLPROJECTION="none");
We use these to record namespace and namespace prefix for qualified name
• property xmlnamespaceprefix as %String(XMLPROJECTION="none");
• property xpath as %String(XMLPROJECTION="NONE");
• property xslfostyle as %ZEN.Datatype.style;
same as style only XSL-FO only

Methods

• method %ApplyClass(tag As %String, ByRef context As %String)
• method %DrawToHTML(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream) as %Status
This method outputs the necessary stylesheet information for the HTML report. Every tag should override this method.
• method %DrawToXSLFO(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream) as %Status
This method outputs the necessary stylesheet information for the PDF report. Every tag should override this method.
• method %GetAbsoluteURL(url As %String, context As %String, isServer As %Boolean) as %String
• method %StyleHTML(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream, backgroundImage As %String = "", ignoreId As %Boolean = 0)
• method %StyleXSLFO(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream, isTableCell As %Boolean = 0, ignoreId As %Boolean = 0) as %Status
• classmethod ApplyClass(inclass As %String, tag As %String, ByRef context As %String)
• classmethod CSPLinkToFileLink(url As %String, ByRef newUrl As %String, ext As %String) as %Status
• classmethod CountSpaces(literal As %String)
• classmethod DoDocForHTML(this, ByRef context As %String, ByRef XSL As %GlobalCharacterStream, children As %ZEN.Report.Display.childrenNode, xpath As %String)
• classmethod GetDocForXSLFO(this, ByRef context As %String, ByRef XSL As %GlobalCharacterStream, children As %ZEN.Report.Display.childrenNode, xpath As %String) as document
• classmethod HTMLStyle(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream, style As %String, class As %String = "", width As %String = "", htmlstyle As %String = "", id As %String = "", selectstylecond As %String = "", stylecall As %String = "", styleparams As %String = "")
• method OutputId(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream)
• classmethod XSLFOStyle(ByRef context As %String, ByRef XSL As %GlobalCharacterStream, ByRef delay As %GlobalCharacterStream, style As %String, class As %String = "", width As %String = "", xslfostyle As %String = "", id As %String = "", selectstylecond As %String = "", stylecall As %String = "", styleparams As %String = "")
• classmethod insertAxis(xpath As %String, axis As %String, position As %Integer)
• classmethod isCSPLink(url As %String)
• classmethod needsURL(url As %String)
• classmethod parent(xpath As %String)
• classmethod processExclamationPoint(x As %String)
• method qualify(xpath As %String)
• method tagGet() as %String
This is a Get accessor method for the tag property.