Skip to main content

%CSP.Util.AutoFormDynamic

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

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.

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.

Method Inventory

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
Inherited description: Called by the page handler when a form is submitted.
pSubmit is the name of the submit button (i.e., $AUTOFORM_SAVE).

Inherited Members

Inherited Methods

FeedbackOpens in a new tab