Skip to main content

This version of the product is no longer supported, and this documentation is no longer updated regularly. See the latest version of this content.Opens in a new tab

ZENMVC.FormDataModel2

class ZENMVC.FormDataModel2 extends %ZEN.DataModel.ObjectDataModel

Sample DataModel used by MVC Form page.

Property Inventory

Method Inventory

Properties

property City as %String (ZENSQL = "Select ID,Name,ZIP FROM ZENDemo_Data.City ORDER BY Name,ZIP", ZENSQLLOOKUP = "Select Name,ZIP FROM ZENDemo_Data.City WHERE ID = ?");
Property methods: CityDisplayToLogical(), CityGet(), CityIsValid(), CityLogicalToDisplay(), CityLogicalToOdbc(), CityNormalize(), CitySet()
property Name as %String;
Property methods: NameDisplayToLogical(), NameGet(), NameIsValid(), NameLogicalToDisplay(), NameLogicalToOdbc(), NameNormalize(), NameSet()
property SSN as %String;
Property methods: SSNDisplayToLogical(), SSNGet(), SSNIsValid(), SSNLogicalToDisplay(), SSNLogicalToOdbc(), SSNNormalize(), SSNSet()

Methods

method %OnLoadModel(pSource As ZENDemo.Data.Patient) as %Status
This callback method does the actual work of loading values from the source object.
method %OnOpenSource(pID As %String, pConcurrency As %Integer = -1, Output pSC As %Status = $$$OK) as %RegisteredObject
Load an instance of the source object for this DataModel.
method %OnSaveSource(pSource As ZENDemo.Data.Patient) as %Status
Load an instance of the source object for this DataModel.
method %OnStoreModel(pSource As ZENDemo.Data.Patient) as %Status
This callback method does the actual work of storing values into the source object.

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab