IRISLIB database
AutoFormGenerator Class Reference

This class is used internally by InterSystems IRIS. More...

Inheritance diagram for AutoFormGenerator:
Collaboration diagram for AutoFormGenerator:

Static Public Member Functions

_.Library.Status GenerateHTMLForm (_.Library.String pClassName, _.Library.CharacterStream pCode, _.Library.Integer pCurrCol, _.Library.Integer pColCount, _.Library.RegisteredObject pDynObj, _.Library.String pContainer, _.Library.String pTopClass, _.Library.RegisteredObject pTopDynObj)
 Generate Code/HTML to create a form for the given class. More...
 
_.Library.Status GenerateHTMLTable (_.Library.String pClassName, _.Library.CharacterStream pCode, _.Library.RegisteredObject pDynObj, _.Library.String pContainer, _.Library.String pTopClass, _.Library.RegisteredObject pTopDynObj, _.Library.Integer pLevel)
 Generate Code/HTML to create a table for the given class. More...
 
_.Library.Status GenerateSubmitCode (_.Library.String pClassName, _.Library.CharacterStream pCode, _.Library.RegisteredObject pDynObj, _.Library.String pContainer, _.Library.String pTopClass, _.Library.RegisteredObject pTopDynObj)
 Generate code fragment to copy request values into properties.
 
_.Library.Status GetOrderedProps (_.Dictionary.CompiledClass pClassDef, _.Dictionary.CompiledProperty pList)
 Build a list of properties in sequence order, including inherited properties. More...
 
 GetOrderedPropsXML (_.Dictionary.CompiledClass pClassDef, _.Dictionary.CompiledProperty pList)
 Build a list of properties in sequence order from the xdata block. More...
 
_.Library.String GetPropCode (_.Library.String pName, _.Library.String pType, _.Dictionary.CompiledProperty pPropDef, _.Library.Boolean pDynamic, _.Library.String pVal)
 Return a string of HTML defining an HTML control. More...
 
_.Library.String LocalizeText (_.Library.String pText, _.Library.String pDomain)
 Get localized text for captions.
 

Static Public Attributes

 MAXPROPERTIES = None
 This class is used internally by InterSystems IRIS. More...
 
- Static Public Attributes inherited from RegisteredObject
 CAPTION = None
 Optional name used by the Form Wizard for a class when generating forms. More...
 
 JAVATYPE = None
 The Java type to be used when exported.
 
 PROPERTYVALIDATION = None
 This parameter controls the default validation behavior for the object. More...
 

Additional Inherited Members

- Public Member Functions inherited from RegisteredObject
_.Library.Status OnAddToSaveSet (_.Library.Integer depth, _.Library.Integer insert, _.Library.Integer callcount)
 This callback method is invoked when the current object is added to the SaveSet,. More...
 
_.Library.Status OnClose ()
 This callback method is invoked by the <METHOD>Close</METHOD> method to. More...
 
_.Library.Status OnConstructClone (_.Library.RegisteredObject object, _.Library.Boolean deep, _.Library.String cloned)
 This callback method is invoked by the <METHOD>ConstructClone</METHOD> method to. More...
 
_.Library.Status OnNew ()
 This callback method is invoked by the <METHOD>New</METHOD> method to. More...
 
_.Library.Status OnValidateObject ()
 This callback method is invoked by the <METHOD>ValidateObject</METHOD> method to. More...
 

Detailed Description

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.

Member Function Documentation

◆ GenerateHTMLForm()

_.Library.Status GenerateHTMLForm ( _.Library.String  pClassName,
_.Library.CharacterStream  pCode,
_.Library.Integer  pCurrCol,
_.Library.Integer  pColCount,
_.Library.RegisteredObject  pDynObj,
_.Library.String  pContainer,
_.Library.String  pTopClass,
_.Library.RegisteredObject  pTopDynObj 
)
static

Generate Code/HTML to create a form for the given class.


The caller is responsible for the FORM and TABLE wrapper tags

◆ GenerateHTMLTable()

_.Library.Status GenerateHTMLTable ( _.Library.String  pClassName,
_.Library.CharacterStream  pCode,
_.Library.RegisteredObject  pDynObj,
_.Library.String  pContainer,
_.Library.String  pTopClass,
_.Library.RegisteredObject  pTopDynObj,
_.Library.Integer  pLevel 
)
static

Generate Code/HTML to create a table for the given class.


The caller is responsible for the TABLE wrapper tags

◆ GetOrderedProps()

_.Library.Status GetOrderedProps ( _.Dictionary.CompiledClass  pClassDef,
_.Dictionary.CompiledProperty  pList 
)
static

Build a list of properties in sequence order, including inherited properties.


On return, pList is a list of properties names (subscripted by order number).

◆ GetOrderedPropsXML()

GetOrderedPropsXML ( _.Dictionary.CompiledClass  pClassDef,
_.Dictionary.CompiledProperty  pList 
)
static

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

◆ GetPropCode()

_.Library.String GetPropCode ( _.Library.String  pName,
_.Library.String  pType,
_.Dictionary.CompiledProperty  pPropDef,
_.Library.Boolean  pDynamic,
_.Library.String  pVal 
)
static

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.

Member Data Documentation

◆ MAXPROPERTIES

MAXPROPERTIES = None
static

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.

Maximum number of properties to display within an HTML form or table.