Home > Class Reference > ENSLIB namespace > EnsPortal.MessageContents


class EnsPortal.MessageContents extends %CSP.Page

Utility class for displaying the contents of messages.

You should be able to pass in the following parameters:
HeaderClass=<specific message class> (or Ens.MessageHeader if you are starting from a header)
Transform=<Name of transform to apply to an XML Virtual Document>
SchemaCat=<Schema category to use in constructing DocType (if needed)>

The allowed values for HeaderClass are:
any child of EnsLib.EDI.Document

Method Inventory (Including Private)


parameter CONTENTTYPE = text/html;
Default content type
parameter DOMAIN = Ensemble;
Inherited description: The default domain for csp:text, span and div tags. This parameter is used to specify the subset of localized messages to be used on this page.
parameter JSINCLUDES = ensemble/Ensemble_Utils.js;
Comma-separated list of additional JS include files for the page - for Event Details popup.

Methods (Including Private)

classmethod CheckPermissions(pClassName As %String = "") as %Status [ Language = objectscript ]
Check whether the user is permitted to view data contained in the class specified in pClassName. An error indicating a reason will be returned if the user is not permitted to view the contents of the class.
private classmethod DrawAutoLogout() [ Language = objectscript ]
Helper method to draw the autologout logic for this page. This code should be called from within the HTML head tag.
classmethod GetMessages(messages As %ZEN.proxyObject) as %ZEN.proxyObject [ Language = objectscript ]
private classmethod GetStatus(Output pType As %String) as %Status [ Language = objectscript ]
Helper method to retrieve recorded status values/
classmethod Initialize(Output pContentType) [ Language = objectscript ]
Process the incoming request and correctly initialize the data that will be used to construct the appropriate response.
classmethod OnPage() as %Status [ Language = objectscript ]
Render the actual content the user will see.
classmethod OnPreHTTP() as %Boolean [ Language = objectscript ]
Inherited description: Event handler for PreHTTP event: this is invoked before the HTTP headers for a CSP page have been sent. All changes to the %CSP.Response class, such as adding cookies, HTTP headers, setting the content type etc. must be made from within the OnPreHTTP() method. Also changes to the state of the CSP application such as changing %session.EndSession or %session.AppTimeout must be made within the OnPreHTTP() method. It is prefered that changes to %session.Preserve are also made in the OnPreHTTP() method as this is more efficient, although it is supported in any section of the page. Return 0 to prevent OnPage() from being called.
private classmethod SetStatus(pStatus As %Status, pType As %String = "server") [ Language = objectscript ]
Helper method to record a status for later reuse.
classmethod writewithoutNonXMLChars(pWriter As %XML.Writer, pObject As %XML.Adaptor, Output pWasChanged As %Boolean = 0, pLimitOutputSize As %Integer = 0) as %Status [ Language = objectscript ]
Used to strip non XML characters from XML object when writing to current device.

Inherited Members

Inherited Methods (Including Private)

FeedbackOpens in a new window