Skip to main content


class ZMbasics.Tutorial3.HomePage extends %ZEN.Mojo.basePage

Sample Zen Mojo tutorial page. Use this tutorial after working with ZMbasics.Tutorial2.HomePage.

The primary difference from Tutorial 2 is that *this* tutorial demonstrates the onselect() event handler.

This ZM page class uses the template class ZMbasics.Tutorial3.Template.

Next tutorial in the series: ZMbasics.Tutorial4.HomePage.

Method Inventory


parameter DOMAIN = Zen Mojo Demo;
Localization domain; best practice is to always specify this
parameter PROVIDERLIST = mainViewData;
List of server-side JSON providers for ZM to create; each of these can send a JSON string to the client. This works as follows: The parameter is a comma-separated list of strings. For each string in this list, ZM creates an instance of the associated template class (see TEMPLATECLASS) and invokes its %OnGetJSONContent() method, passing the PROVIDERLIST list item as the first argument. The method returns a set of JSON strings, which are available on the client.

In this example, there is only one JSON provider.

parameter TEMPLATECLASS = ZMbasics.Tutorial3.Template;
Name of the default template class that this page uses.


method %GetAppSettings(pPage As %String = "", pMode As %String = "") as %ZEN.proxyObject
Method override for this page. This method defines the application name, which controls the name shown on the browser tab.
This implementation erases the default contents of the header area.
clientmethod adjustContentSize(load, width, height) [ Language = javascript ]
Implementation for this page. This method adjusts the size of the documentView components within the content area based on the current width and height of the screen. In this case there is only one documentView.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab