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)
SourceFile=<normalised_path_to_file>
HeaderId=<ID_of_object>
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:
Ens.MessageHeader
Ens.Util.LogBase
Ens.Util.IOLog
Ens.BP.Context
EnsLib.EDI.XML.Document
EnsLib.Workflow.TaskResponse
any child of EnsLib.EDI.Document
Method Inventory
- CheckPermissions()
- GetMessages()
- Initialize()
- OnPage()
- OnPostHTTP()
- OnPreHTTP()
- writewithoutNonXMLChars()
Parameters
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
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.
classmethod GetMessages(messages As %ZEN.proxyObject) as %ZEN.proxyObject
classmethod Initialize(Output pContentType)
Process the incoming request and correctly initialize the data that will be
used to construct the appropriate response.
classmethod OnPage() as %Status
Render the actual content the user will see.
classmethod OnPostHTTP()
Clean up after the data for the CSP page has been sent to the browser from the the InterSystems IRIS server.
classmethod OnPreHTTP() as %Boolean
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.
classmethod writewithoutNonXMLChars(pWriter As %XML.Writer, pObject As %XML.Adaptor, Output pWasChanged As %Boolean = 0, pLimitOutputSize As %Integer = 0) as %Status
Used to strip non XML characters from XML object when writing to current device.
Inherited Members
Inherited Methods
- %ClassIsLatestVersion()
- %ClassName()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %New()
- %OriginalNamespace()
- %PackageName()
- %SetModified()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- OnHTTPHeader()
- OnPageError()
- OnPostHyperEvent()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()