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

class ZENMVC.MVCForm extends %ZEN.Component.page

Model-View-Controller form demo page. This page uses the Zen MVC mechanism to create a form.

Property Inventory

Method Inventory

Parameters

parameter APPLICATION = ZENMVC.MVCApplication;
Application this page belongs to.
parameter PAGENAME = MVC Form Page;
Inherited description: Optional. This is the display name used for this page. If not provided, the class name is used.

Properties

property ObjID as %ZEN.Datatype.integer (ZENURL = "ID") [ InitialExpression = 1 ];
This defines the ID of the initial object to display. You can pass this in via the URL parameter, ID, if you like.
Property methods: ObjIDDisplayToLogical(), ObjIDGet(), ObjIDIsValid(), ObjIDLogicalToDisplay(), ObjIDLogicalToOdbc(), ObjIDNormalize(), ObjIDSet()

Methods

clientmethod findObject() [ Language = javascript ]
Find and load the object whose id is in the objid text box.
clientmethod save() [ Language = javascript ]
save model to database

Inherited Members

Inherited Properties

Inherited Methods

FeedbackOpens in a new tab