DocBook|Search
Class Reference
%CSP.Util.AutoFormGenerator
   
Server:basexml
Instance:SOAXML
User:UnknownUser
 
-
  [BASEXML] >  [%CSP] >  [Util] >  [AutoFormGenerator]
Private  Storage  

abstract class %CSP.Util.AutoFormGenerator extends %RegisteredObject

This class is used internally by Caché. You should not make direct use of it within your applications. There is no guarantee made about either the behavior or future operation of this class.

Code generator class for AutoForms.

Inventory

Parameters Properties Methods Queries Indices ForeignKeys Triggers
1 8


Summary

Methods
%%OIDGet %AddToSaveSet %ClassIsLatestVersion %ClassName
%ConstructClone %DispatchClassMethod %DispatchGetModified %DispatchGetProperty
%DispatchMethod %DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty
%Extends %GetParameter %IsA %IsModified
%New %NormalizeObject %ObjectModified %OriginalNamespace
%PackageName %RemoveFromSaveSet %SerializeObject %SetModified
%ValidateObject GenerateHTMLForm GenerateHTMLTable GenerateSubmitCode
GetOrderedProps GetOrderedPropsXML GetPropCode LocalizeText
TextMe


Parameters

• parameter MAXPROPERTIES = 100;
Maximum number of properties to display within an HTML form or table.

Methods

• classmethod GenerateHTMLForm(pClassName As %String, pCode As %CharacterStream, ByRef pCurrCol As %Integer = 1, pColCount As %Integer = 1, pDynObj As %RegisteredObject = "", pContainer As %String = "", pTopClass As %String = "", pTopDynObj As %RegisteredObject = "") as %Status
Generate Code/HTML to create a form for the given class.
The caller is responsible for the FORM and TABLE wrapper tags
• classmethod GenerateHTMLTable(pClassName As %String, pCode As %CharacterStream, pDynObj As %RegisteredObject = "", pContainer As %String = "", pTopClass As %String = "", pTopDynObj As %RegisteredObject = "", ByRef pLevel As %Integer = 0) as %Status
Generate Code/HTML to create a table for the given class.
The caller is responsible for the TABLE wrapper tags
• classmethod GenerateSubmitCode(pClassName As %String, pCode As %CharacterStream, pDynObj As %RegisteredObject = "", pContainer As %String = "", pTopClass As %String = "", pTopDynObj As %RegisteredObject = "") as %Status
Generate code fragment to copy request values into properties
• classmethod GetOrderedProps(pClassDef As %Dictionary.CompiledClass, ByRef pList As %Dictionary.CompiledProperty) as %Status
Build a list of properties in sequence order, including inherited properties.
On return, pList is a list of properties names (subscripted by order number).
• classmethod GetOrderedPropsXML(pClassDef As %Dictionary.CompiledClass, ByRef pList As %Dictionary.CompiledProperty)
Build a list of properties in sequence order from the xdata block FormDefinition.
This does not include inherited properties.
On return, pList is a list of properties names (subscripted by order number).
• classmethod GetPropCode(pName As %String, pType As %String, pPropDef As %Dictionary.CompiledProperty, pDynamic As %Boolean = 0, pVal As %String = "") as %String
Return a string of HTML defining an HTML control for the given datatype property.
The value of the control should use the express pValExpr.
pName is the name to use for the control.
pType is the normalized type (class name) for the property.
• classmethod LocalizeText(pText As %String, pDomain As %String = "%Utility") as %String
Get localized text for captions
• classmethod TextMe(pText As %String, pDomain As %String) as %String