This is documentation for Caché & Ensemble.

For information on converting to InterSystems IRIS, see the InterSystems IRIS Adoption Guide and the InterSystems IRIS In-Place Conversion Guide, both available on the WRC Distributions page (login required).

Home > Class Reference > %SYS namespace > %ZEN.Component.dataView

%ZEN.Component.dataView

abstract class %ZEN.Component.dataView

This abstract class defines the common interface needed by dataView components (the View part of the Model-View-Controller architecture).

Property Inventory (Including Private)

Method Inventory (Including Private)

Properties (Including Private)

property %controller as %ZEN.Auxiliary.dataController (XMLPROJECTION = "none");
Internal property.
Used by server to hold a reference to the associated dataController object.
Property methods: %controllerGet(), %controllerGetSwizzled(), %controllerIsValid(), %controllerNewObject(), %controllerSet()
property controller as %ZEN.Datatype.string (XMLPROJECTION = "none", ZENSETTING = 0);
Internal property.
Used by client to hold a reference to the associated %ZEN.Auxiliary.dataController object.
Property methods: controllerDisplayToLogical(), controllerGet(), controllerIdDisplayToLogical(), controllerIdGet(), controllerIdIsValid(), controllerIdLogicalToDisplay(), controllerIdLogicalToOdbc(), controllerIdNormalize(), controllerIdSet(), controllerIsValid(), controllerLogicalToDisplay(), controllerLogicalToOdbc(), controllerNormalize(), controllerSet()
property controllerId as %ZEN.Datatype.id (COMPONENTTYPE = "dataController");
Optional. The id of the %ZEN.Auxiliary.dataController object that provides data for this dataView component.
If provided, this must be the valid id of a %ZEN.Auxiliary.dataController object.
Property methods: controllerIdDisplayToLogical(), controllerIdGet(), controllerIdIsValid(), controllerIdLogicalToDisplay(), controllerIdLogicalToOdbc(), controllerIdNormalize(), controllerIdSet()
property onnotifyView as %ZEN.Datatype.eventHandler;
onnotifyView event handler: This event is fired when a dataController connected to this dataView raises an event.
Property methods: onnotifyViewDisplayToLogical(), onnotifyViewGet(), onnotifyViewIsValid(), onnotifyViewLogicalToDisplay(), onnotifyViewLogicalToOdbc(), onnotifyViewNormalize(), onnotifyViewSet()

Methods (Including Private)

private method %AcquireDataFromController() as %Status
Server-side method used by dataView implementation classes to get values from the associated dataController, if present. This is typically called by components on the server before they are initially rendered in order to get initial data values.
clientmethod getController() [ Language = javascript ]
Get the dataController component associated with this dataView, if present. Returns null if no there is no controller. This is used by dataView implementation classes.
clientmethod sendEventToController(reason, data1, data2, data3) [ Language = javascript ]
If connected, send an event to a dataController. This is used by dataView implementation classes. Possible values of reason include:
'propertyChange' - data1 is property name,data2 is the new value,data3 is the series number (if applicable).
clientmethod setControllerId(id) [ Language = javascript ]
Set the controller id for this dataView and establish a connection to the new controller. This is used by dataView implementation classes.

Subclasses

FeedbackOpens in a new window