Skip to main content

Zen Pages

Zen pages are Caché classes that extend %ZEN.Component.pageOpens in a new tab. A typical Zen page contains the following elements:

Zen Page Elements
Element Description

The class parameters include

  • APPLICATION – The name of the Application class that the page belongs to.

  • RESOURCE – The resource that a user must hold USE privileges on in order to use the page.

  • PAGENAME – A logical name for the page.

  • DOMAIN – The name of the localization domain.

Page Properties

Properties defined within the class whose names do not begin with “%” become part of the page object and can be accessed by methods on the page. Properties can be any data type, however Zen provides a set of data types tailored for use within a Zen page. See the note below for more information.

XData Style

An XML block that contains page-specific style information in the form of Cascading Style Sheet (CSS) style definitions.

XData Contents

An XML block that specifies the components and the layout for the page. XML elements represent the components as well as define the layout.


Three different types of methods:

  • Server only methods. Name starts with “%”. These methods are not part of the client-side page object and can only be invoked from server-side code.

  • Client-Side (JavaScript) methods. Invoked and executed within the client. Access to the page's document object model (DOM) through the zenPage variable.

  • Server-Side (ZenMethod) methods. Invoked on the client and executed on the server. Access to the page's DOM through the %page variable.


To learn more about the structure of Zen pages, read Zen Pages in the Zen Application Concepts section of Using Zen.

To learn more about Zen data types, read Zen Datatype Classes in the Custom Components section of Developing Zen Applications.

FeedbackOpens in a new tab