This is a ZEN MVC DataModel class that adapts the data collected by a Business
Metric service for use in a ZEN MVC page.
This model is read-only.
For a dataController to connect to Business Metric:
Its modelClass property should be set to "Ens.MetricModel"
Its modelId should be set the configuration name of the Business Metric.
parameter READONLYMODEL = 1;
Metric models are read-only.
method %CopyDataToModel(ByRef pData, pSeries As %Integer = "")
classmethod %DeleteModel(pID As %String)
Delete a given DataModel instance.
final classmethod %GetPropertyInfo(Output pInfo As %String, pExtended As %Boolean = 0, pModelId As %String = "", pContainer As %String = "")
Return an array, subscripted by property name, describing the properties within this DataModel.
method %OnLoadModel(pSource As %RegisteredObject)
These are returned as an array of the form:
pInfo(name) = seqno
If pExtended is true (1), then the array will include
additional nodes for each property. This information is used to
create dynamic forms for this model.
Applications should not change this method.
This callback method does the actual work of loading values
from the data source into this DataModel object.
final classmethod %OpenModel(pID As %String, pConcurrency As %Integer = -1, Output pSC As %Status = $$$OK)
Open and return an instance of this DataModel object (given an id value pID and
fill in its property values.
final method %SaveModel()
pID will be the name of the Business Metric that will provide the data.
Save the values currently within this DataModel object back to a data source.