%ZEN.application
deprecated class %ZEN.application extends %Library.RegisteredObject, %CSP.Page
This class is used to define a ZEN application. This is an instantiable CSP page.Property Inventory
Method Inventory
- %DrawStyleHTML()
- %GetApplicationName()
- %GetUserPackages()
- %LinkCSS()
- %LinkScript()
- %OnGetJSResources()
- OnPage()
- OnPreHTTP()
Parameters
parameter APPLICATIONNAME;
Optional name of this application.
If not defined, the class name of the application is used. This is used for display purposes within some utilities but it not used at run-time.
If not defined, the class name of the application is used. This is used for display purposes within some utilities but it not used at run-time.
parameter CSS3INCLUDES;
Comma-separated list of additional CSS3 include files that should be
included for every page within the application.
This is used when the page uses CSS3. The CSS files will be included after any component style sheets and before styles defined by this application class or the page class.
This is used when the page uses CSS3. The CSS files will be included after any component style sheets and before styles defined by this application class or the page class.
parameter CSSINCLUDES;
Comma-separated list of additional CSS include files that should be
included for every page within the application.
The CSS files will be included after any component style sheets and before styles defined by this application class or the page class.
The CSS files will be included after any component style sheets and before styles defined by this application class or the page class.
parameter HOMEPAGE;
This is the URL of the main starting page of this application.
parameter JSINCLUDES;
Comma-separated list of additional JS include files that should be
included for every page within the application.
parameter USERPACKAGES;
Comma-separated list of User class packages whose HTML class
and style definitions are in pre-generated include files.
These include files will be used by every page within the application.
parameter USERSVGPACKAGES;
Comma-separated list of User class packages whose SVG class
and style definitions are in pre-generated include files.
These include files will be used by every applicable page within the application.
Properties
property %StatusCode as %Status;
Status code for this object.
If a page encounters errors when trying to create the
application object instance, this property will be set to
an error code.
Property methods: %StatusCodeGet(), %StatusCodeIsValid(), %StatusCodeLogicalToOdbc(), %StatusCodeSet()
Methods
Write out HTML/CSS style sheet defined for this application.
This is based on the XData block, Style.
This style sheet is used to provide application-wide overrides for styles.
This is based on the XData block, Style.
This style sheet is used to provide application-wide overrides for styles.
classmethod %GetApplicationName()
Return the display name of this application class.
Return the USERPACKAGE and USERSVGPACKAGE lists defined for this application class.
Return string used to include a CSS file.
[Previously private]
Return string used to include a script file.
[Previously private]
Applications can implement this callback method in order to define a set of
client-side resources: javascript strings that have been localized.
This is the same as the Zen page callback method except that it is shared by all pages within an application.
This method should fill in the array pResources with a set of localized strings, indexed by resource id:
Javascript methods can refer to these resources using the helper function zenGetResource:
Zen defines a set of built-in resource strings using this mechanism. These
have a "zen" prefix to keep them seperate from user ids.
Be sure to define the DOMAIN for your application class if you override this method.
This is the same as the Zen page callback method except that it is shared by all pages within an application.
This method should fill in the array pResources with a set of localized strings, indexed by resource id:
Set pResources("MyId") = $$$Text("Some string")
alert(zenText('MyId'));
Be sure to define the DOMAIN for your application class if you override this method.
classmethod OnPage() as %Status
Default OnPage handler-- only called if no HOMEPAGE
is defined for this application.
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.
Inherited Members
Inherited Methods
- %AddToSaveSet()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %Extends()
- %GetParameter()
- %IsA()
- %IsModified()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OriginalNamespace()
- %PackageName()
- %RemoveFromSaveSet()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- ConvertParameter()
- Decrypt()
- Encrypt()
- EscapeHTML()
- EscapeURL()
- HyperEventCall()
- HyperEventHead()
- Include()
- InsertHiddenField()
- InsertHiddenFields()
- IsPrivate()
- Link()
- OnHTTPHeader()
- OnPageError()
- OnPostHTTP()
- OnPostHyperEvent()
- OnPreHyperEvent()
- Page()
- QuoteJS()
- RewriteURL()
- ShowError()
- StartTimer()
- StopTimer()
- ThrowError()
- UnescapeHTML()
- UnescapeURL()