ZMbasics.Tutorial3.Template
class ZMbasics.Tutorial3.Template extends %ZEN.Mojo.Component.contentTemplate
This is the template for the ZM page ZMbasics.Tutorial3.HomePage.The primary difference from Tutorial 2 is that *this* tutorial demonstrates the onselect() event handler.
Next tutorial in the series: ZMbasics.Tutorial4.HomePage.
Method Inventory
Parameters
Methods
- pProviderName is the name of the provider, as declared in the PROVIDERLIST parameter of the page.
- pKey is an application-defined key that is used to indicate which content is to be served. Not used in this implementation.
- pCriteria is an object containing search criteria. Not used in this implementation.
- pParms is an array of additional parameters from the JSON provider (not currently used).
- pObject is the object that will be served to the client in JSON format.
- pLoad is true if this is called when the page is first being served. In this case, this method will be called even though there may a client-side method used to load the content.
This method must create and return a JS object with layout information. Specifically, the JS object has a set of children, each of which corresponds to a block on the page. To create this JS object, it is necessary to know only the following:
- Syntax to create a JS object.
- The available ZM building blocks to use as children.
- The properties that you can set for these building blocks.
- The syntax for referring to the available data. The ongetdata callback, ultimately, creates a JSON string that includes a set of name/value pairs with values obtained from the server. When this JSON string arrives on the client, the name/value pairs are available to the client. Then, in this method, you can use the syntax =[name] to access a value. For example, =[dateOfBirth] accesses the dateOfBirth value.
ZM passes two values to this kind of callback in a <mojo:documentView>: key and criteria. Following best practices, this method uses these values as arguments so that they are available if needed. In this scenario, these values are not needed, and the method does not use them.
Inherited Members
Inherited Properties
- %condition
- %import
- %includeFiles
- %page
- %resource
- align
- aux
- composite
- containerStyle
- dragEnabled
- dropEnabled
- enclosingClass
- enclosingStyle
- error
- height
- hidden
- hint
- hintClass
- hintStyle
- id
- index
- label
- labelClass
- labelDisabledClass
- labelStyle
- name
- onafterdrag
- onbeforedrag
- ondrag
- ondrop
- onhide
- onrefresh
- onshow
- onupdate
- parent
- showLabel
- slice
- title
- tuple
- valign
- visible
- width
- window
Inherited Methods
- %AddToSaveSet()
- %Attr()
- %BindExport()
- %ClassIsLatestVersion()
- %ClassName()
- %ConstructClone()
- %DispatchClassMethod()
- %DispatchGetModified()
- %DispatchGetProperty()
- %DispatchMethod()
- %DispatchSetModified()
- %DispatchSetMultidimProperty()
- %DispatchSetProperty()
- %DrawComponentHTML()
- %DrawHTML()
- %DrawJSStrings()
- %EnclosingDivId()
- %Eval()
- %EvalC()
- %Extends()
- %ForceClientRender()
- %GetEventHandlers()
- %GetMojoJSStrings()
- %GetParameter()
- %GetXMLName()
- %IsA()
- %IsModified()
- %MakeId()
- %New()
- %NormalizeObject()
- %ObjectModified()
- %OnAddToPageAfter()
- %OnAddToPageBefore()
- %OnDrawEnclosingDiv()
- %OnDrawObjectProperties()
- %OnObjectSynch()
- %OnSubmitData()
- %OnZENDeserialize()
- %OriginalNamespace()
- %PackageName()
- %QuoteValue()
- %QuoteValueL10N()
- %RemoveFromSaveSet()
- %Self()
- %SerializeObject()
- %SetModified()
- %ValidateObject()
- XMLDTD()
- XMLExport()
- XMLExportToStream()
- XMLExportToString()
- XMLNew()
- XMLSchema()
- XMLSchemaNamespace()
- XMLSchemaType()
- dragFinishHandler()
- dragHandler()
- dragNotifyHandler()
- dragStartHandler()
- dropHandler()
- dropStartHandler()
- exposeComponent()
- findElement()
- fireOnUpdateEvent()
- getEnclosingDiv()
- getHidden()
- getHintElement()
- getLabelElement()
- getProperty()
- getSettings()
- getType()
- invokeSuper()
- isOfType()
- makeId()
- onCreate()
- onDelete()
- onDisplayHandler()
- onEndModalHandler()
- onLoadTemplate()
- onPopupAction()
- onRefreshContents()
- onSerialize()
- onStartModalHandler()
- onchange()
- onevent()
- onloadHandler()
- onunloadHandler()
- onupdateHandler()
- refreshContents()
- render()
- renderContents()
- renderSVG()
- setHidden()
- setOverlayMode()
- setProperty()
- startProgressBar()
- stopProgressBar()