Learning
Documentation
Community
Open Exchange
Global Masters
Home / Class Reference / ENSLIB namespace / %CSP.Util.AutoFormDynamic
Private  Storage   

%CSP.Util.AutoFormDynamic


class %CSP.Util.AutoFormDynamic extends
%RegisteredObject, %CSP.Util.AutoForm

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.

This is a version of AutoForm that generates its dialog and forms dynamically, that is, it calculates what properties to display at run-time using the meta-information for the provided object.
This is not as efficient as the generated case, but is useful for some applications.

Inventory


Parameters Properties Methods Queries Indices ForeignKeys Triggers
4


Summary


Methods
%AddToSaveSet %ClassIsLatestVersion %ClassName %ConstructClone
%DispatchClassMethod %DispatchGetModified %DispatchGetProperty %DispatchMethod
%DispatchSetModified %DispatchSetMultidimProperty %DispatchSetProperty %Extends
%GetParameter %IsA %IsModified %New
%NormalizeObject %ObjectModified %OriginalNamespace %PackageName
%RemoveFromSaveSet %SerializeObject %SetModified %ValidateObject
CreateInstance DispatchSubmit DoSubmit DrawFormButtons
DrawHTMLForm DrawHTMLTable GetComboBoxHTML GetFormError
OnDefineButtons OnSubmit ProcessSubmit SetFormError
Submit


Methods


• classmethod DrawHTMLForm(pObj As %RegisteredObject, ByRef pID As %String, pActionURL As %String = "", ByRef pButtons As FormButton, pTarget As %String = "") as %Status
Draw an HTML form for this form object.
pObj is an instance of the form object that provides the initial values for the form.
• classmethod DrawHTMLTable(pObj As %RegisteredObject, ByRef pID As %String) as %Status
Draw an HTML table for an arbitary object.
pObj is an instance of object that provides the definition and values for the table.
This table is dynamic in that the table to display is calculated at runtime.
• classmethod ProcessSubmit(pRequest As %CSP.Request, ByRef pID As %String = "", Output pErrorMsg As %String, pPersistentOnly As %Boolean = 1) as AutoForm
Takes submitted data for a form and returns an instance of AutoForm object
• classmethod Submit(pRequest As %CSP.Request, pSubmit As %String) as %Status
Called by the page handler when a form is submitted.
pSubmit is the name of the submit button (i.e., $AUTOFORM_SAVE).