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.ExpenseCalculator

class ZENDemo.ExpenseCalculator extends %ZEN.Component.page

This example uses the dynamic grid control and a stacked bar chart to create a simple expense report calculator.

Property Inventory

Method Inventory

Parameters

parameter APPLICATION = ZENDemo.Application;
Application this page belongs to.
parameter DOMAIN = ZENTEST;
Domain used for localization.
parameter PAGENAME = Expense Calculator;
Inherited description: Optional. This is the display name used for this page. If not provided, the class name is used.

Properties

property dayList as %ZEN.Datatype.caption [ InitialExpression = "Sun,Mon,Tue,Wed,Thu,Fri,Sat" ];
Default list of days names to display in the chart. By defining this as a caption, it will automatically be added to the localization database.
Property methods: dayListDisplayToLogical(), dayListGet(), dayListIsValid(), dayListLogicalToDisplay(), dayListLogicalToOdbc(), dayListNormalize(), dayListSet()

Methods

method CreateDataSet(pGrid As %ZEN.Component.dynaGrid, pDataSet As %ZEN.Auxiliary.dataSet) as %Status
Server-side callback to provide initial data for the dynaGrid.
Return an array of quick links to be displayed by the locator bar.
clientmethod calcCellChange(grid) [ Language = javascript ]
cellChange: called when cell is changed
clientmethod calcCellDraw(grid, data) [ Language = javascript ]
cellDraw: called when cell is about to be drawn in dynaGrid
clientmethod chartElementClick(chart) [ Language = javascript ]
User mouse click on an element in the bar chart.
We will move the corresponding cell in the grid.
clientmethod getChartData(series) [ Language = javascript ]
Callback to provide data for chart.
clientmethod getChartLabelX(val) [ Language = javascript ]
Callback to provide labels for chart.
clientmethod onloadHandler() [ Language = javascript ]
This client event, if present, is fired when the page is loaded.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab