%DeepSee.UI.MDXPDF
Class %DeepSee.UI.MDXPDF Extends %ZEN.Report.reportPage [ System = 4 ]
Execute an MDX query and render it to PDF by using the Zen reports infrastructure. The encrypted query to process is passed in via the URL parameter MDX.
Parameters
DOMAIN
Parameter DOMAIN = "%DeepSee";
DEFAULTMODE
Parameter DEFAULTMODE = "pdf";
XDatas
ReportDefinition
XData ReportDefinition [ XMLNamespace = "http://www.intersystems.com/zen/report/definition" ]
XML that defines the contents of this report.
ReportDisplay
XData ReportDisplay [ XMLNamespace = "http://www.intersystems.com/zen/report/display" ]
Methods
Test
ClassMethod Test(pMDX As %String) [ Internal ]
%GetContext
ClassMethod %GetContext(Output pContext, Output pParms)
Fill in the context array from the current URL parameters. Also fill in the parameter array used to resolve expression references in %ParseExpr.
GetTableData
ClassMethod GetTableData()
Get the data, as xml, for the current query.
%WriteXMLForMDX
ClassMethod %WriteXMLForMDX(ByRef pContext, ByRef pParms, pMDX As %String) As %Status
Write out the contents of an MDX query in a way that can be consumed by a Zen report. pMDX is the query.
%WriteXMLForPivot
ClassMethod %WriteXMLForPivot(ByRef pContext, ByRef pParms, pRS As %DeepSee.ResultSet, pCaption As %String = "") As %Status
Write out result set as XML for PDF.
%WriteXMLForListing
ClassMethod %WriteXMLForListing(ByRef pContext, ByRef pParms, pRS As %SQL.StatementResult, pCaption As %String = "", pListingFields As %List = "") As %Status
Write out listing results as XML for PDF
%WriteXMLForKPI
ClassMethod %WriteXMLForKPI(ByRef pContext, ByRef pParms, pKPI As %String) As %Status
Write out KPI results as XML for PDF.
%ParseStyle
ClassMethod %ParseStyle(pStyle As %String, Output pCSS As %String)
Parse a CSS style directive.
%WriteXMLMessage
ClassMethod %WriteXMLMessage(pTitle As %String, pMessage As %String)
Create a simplified XML report for displaying an error message.
%EscapeHTML
ClassMethod %EscapeHTML(pValue As %String) As %String
Format a string value for HTML output. This means escaping UNICODE characters.
%FormatNumber
ClassMethod %FormatNumber(pValue As %String, pFormat As %String = "") As %String [ CodeMode = expression ]
Format a value for output.
OnAfterCreateDisplay
ClassMethod OnAfterCreateDisplay()
Update the Report Display
%DrawCell
ClassMethod %DrawCell(pValue As %String, ByRef pAttrs) [ Internal ]
Draw one cell within a table.
%DrawHeader
ClassMethod %DrawHeader(pValue As %String, ByRef pAttrs) [ Internal ]
Draw one header within a table.
%ParseExpr
ClassMethod %ParseExpr(pText As %String, ByRef pParms) As %String [ Internal ]
Take a string containing {@PROP.PARM} expressions and return a new string with the expressions replaced. E.g.: turns "hello {@date.7} into
"hello January 1, 2011"
%OnPreHTTP
ClassMethod %OnPreHTTP() As %Boolean [ ServerOnly = 1 ]
Test for additional resources.
GetFilterText
ClassMethod GetFilterText(ByRef pContainer As %ZEN.Report.Display.div, ByRef pParms As %String, ByRef pContext As %String, pIncludeFilterText As %Boolean = 0)
OnPage
ClassMethod OnPage() As %Status
Render the contents of this ZEN report.
%LoadFilePDFToStream
Method %LoadFilePDFToStream(pFileRoot = "", ByRef pTempFiles) As %Status [ Internal ]
Directly load a pdf file from the OS and stream it into the content of this window.
%FetchNoncedParmData
ClassMethod %FetchNoncedParmData(pDataLabel As %String, pDefault As %String = "", Output pStatus As %Status) As %String
This provides a means of fetching a nonced value from the key provided in an incoming request parameter. The pDataLabel is the named reference to the URL parameter which is expectd to be available in the available %request data. Once fetched from the nonce global, the value is cached locally for continued availability via this method using the same nonce key in the %request data.