Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

ZENDemo.MethodTest

class ZENDemo.MethodTest extends %ZEN.Component.page

Zen Demo page for methods. This page demonstrates the various ways in which Zen pages can invoke methods.

Property Inventory

Method Inventory

Parameters

parameter APPLICATION = ZENDemo.Application;
Class name of application this page belongs to.
parameter DOMAIN = ZENDEMO;
Domain used for localization.
parameter PAGENAME = Method Test Page;
Inherited description: Optional. This is the display name used for this page. If not provided, the class name is used.

Properties

property customClass as ZENTest.customClass;
This property is here to make sure client page includes definition of customClass.
Property methods: customClassGet(), customClassGetSwizzled(), customClassIsValid(), customClassNewObject(), customClassSet()

Methods

classmethod %OnFinishBackgroundTask(pTaskID As %String)
This server-side callback method is called whenever the client calls to monitor the current background task and the task is complete. Typically a subclass uses this to send back JavaScript to update the page.
classmethod %OnMonitorBackgroundTask(pTaskID As %String, pStatus As %String, pPercentComplete As %Float)
This server-side callback method is called whenever the client calls to monitor the current background task. Typically a subclass uses this to send back JavaScript to update a progress bar.
classmethod BackgroundTask()
This is an example of a task that is run in the background.
Return an array of quick links to be displayed by the locator bar.
classmethod RunBackgroundTask() [ ZenMethod ]
Run a method in the background.
method ServerAsynch(x As %Integer) [ ZenMethod ]
test
method ServerSynch(x As %Integer) as %String [ ZenMethod ]
test
clientmethod assertionTest() [ Language = javascript ]
ASSERT test method
clientmethod calendarAction(group) [ Language = javascript ]
User action handler for calendar flaotingGroup.
clientmethod clientMethod() [ Language = javascript ]
Client method
clientmethod clientMethodCreate() [ Language = javascript ]
A client-method that creates a component dynamically
clientmethod createCustomObject() [ Language = javascript ]
Create an instance of the customClass class.
clientmethod isOfTypeTest() [ Language = javascript ]
test the isOfType method
clientmethod methodMixed() [ Language = javascript ]
Test of intermixed Synch and Asynch methods
clientmethod mgBtnClick() [ Language = javascript ]
OK button pressed within static modalGroup.
clientmethod modalGroupCal() [ Language = javascript ]
display a modalGroup calendar
clientmethod modalGroupDynamic() [ Language = javascript ]
display a dynamic modalGroup
clientmethod modalGroupMsg() [ Language = javascript ]
display a modalGroup msgBox
clientmethod modalGroupStatic() [ Language = javascript ]
Display the static modalGroup.
clientmethod onloadHandler() [ Language = javascript ]
This client event, if present, is fired when the page is loaded.
clientmethod ontaskHandler(taskInfo) [ Language = javascript ]
Client-side callback to update task status.
taskInfo is an associative array (object) containing task status indexed by taskid.
clientmethod refreshHTML() [ Language = javascript ]
Refresh contents of html element.
classmethod serverClassMethod() [ ZenMethod ]
Server class method
classmethod serverClassMethodArgs(p1 As %ZEN.Component.object, p2 As %Integer, p3 As %String) [ ZenMethod ]
Server instance method
classmethod serverClassMethodWithError() [ ZenMethod ]
Server class method with an error to demonstrate error handling.
method serverInstanceMethod() [ ZenMethod ]
Server instance method
method serverInstanceMethodArgs(p1 As %ZEN.Component.object, p2 As %Integer, p3 As %String) [ ZenMethod ]
Server instance method
method serverInstanceMethodCreate() [ ZenMethod ]
Server instance method with server modifications
method serverInstanceMethodDelete() [ ZenMethod ]
Server instance method with server modifications
method serverInstanceMethodMod() [ ZenMethod ]
Server instance method with server modifications
method serverInstanceMethodRet() as %String [ ZenMethod ]
Server instance method
clientmethod toggleDebugMode(cb, name) [ Language = javascript ]
User click on debug mode checkbox.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab