Skip to main content

%CSP.Util.AutoFormGenerator

abstract class %CSP.Util.AutoFormGenerator extends %Library.RegisteredObject

This class is used internally by InterSystems IRIS. 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.

Method Inventory

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

Inherited Members

Inherited Methods

FeedbackOpens in a new tab