IRISLIB database
AutoFormDynamic Class Reference

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

Inheritance diagram for AutoFormDynamic:
Collaboration diagram for AutoFormDynamic:

Static Public Member Functions

_.Library.Status DrawHTMLForm (_.Library.RegisteredObject pObj, _.Library.String pID, _.Library.String pActionURL, _.CSP.Util.FormButton pButtons, _.Library.String pTarget)
 This class is used internally by InterSystems IRIS. More...
 
_.Library.Status DrawHTMLTable (_.Library.RegisteredObject pObj, _.Library.String pID)
 Draw an HTML table for an arbitary object. More...
 
_.CSP.Util.AutoForm ProcessSubmit (_.CSP.Request pRequest, _.Library.String pID, _.Library.String pErrorMsg, _.Library.Boolean pPersistentOnly)
 Takes submitted data for a form and returns an instance of AutoForm object.
 
_.Library.Status Submit (_.CSP.Request pRequest, _.Library.String pSubmit)
 Called by the page handler when a form is submitted. More...
 
- Static Public Member Functions inherited from AutoForm
_.CSP.Util.AutoForm CreateInstance (_.Library.String pID)
 Create an instance of the AutoForm object using the provided ID value(s). More...
 
_.Library.Status DispatchSubmit (_.Library.String pSubmit)
 This method invokes a submit on the appropriate form class. More...
 
_.Library.String DoSubmit ()
 Common expiration date used for cookies. More...
 
 DrawFormButtons (_.CSP.Util.FormButton pButtons)
 Draw the buttons for a form...
 
_.Library.String GetComboBoxHTML (_.Library.String pValue, _.Library.String pName, _.Library.String pClass, _.Library.String pQuery, _.Library.String pCaptionColumn, _.Library.String pValueColumn, _.Library.String pP1, _.Library.String pP2, _.Library.String pP3)
 Construct an HTML string defining a combo box for the given query. More...
 
_.Library.String GetFormError ()
 Get error message to be displayed within an AutoForm.
 
 OnDefineButtons (_.CSP.Util.FormButton pButtons)
 Subclasses can override this to redefine the buttons for a form.
 
_.CSP.Util.AutoForm ProcessSubmit (_.CSP.Request pRequest, _.Library.String pID, _.Library.String pErrorMsg)
 Takes submitted data for a form and returns an instance of AutoForm object.
 
 SetFormError (_.Library.String pMsg)
 Set a error message to be displayed within an AutoForm.
 

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...
 
- Public Member Functions inherited from AutoForm
_.Library.Status OnSubmit (_.Library.String pID, _.Library.String pSubmit)
 This callback is called when this form is submitted. 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...
 
- Static Public Attributes inherited from AutoForm
 COMMANDFORM = None
 If true (1) then this is a specialized type of form that only. More...
 
 DOMAIN = None
 Default domain for the Portal's localization.
 
 FORMCOLUMNS = None
 Number of columns used to layout forms for this class.
 

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.

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.

Member Function Documentation

◆ DrawHTMLForm()

_.Library.Status DrawHTMLForm ( _.Library.RegisteredObject  pObj,
_.Library.String  pID,
_.Library.String  pActionURL,
_.CSP.Util.FormButton  pButtons,
_.Library.String  pTarget 
)
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.

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.

Draw an HTML form for this form object.

pObj is an instance of the form object that provides the initial values for the form.

Reimplemented from AutoForm.

◆ DrawHTMLTable()

_.Library.Status DrawHTMLTable ( _.Library.RegisteredObject  pObj,
_.Library.String  pID 
)
static

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.

Reimplemented from AutoForm.

◆ Submit()

_.Library.Status Submit ( _.CSP.Request  pRequest,
_.Library.String  pSubmit 
)
static

Called by the page handler when a form is submitted.


pSubmit is the name of the submit button (i.e., $AUTOFORM_SAVE).

Reimplemented from AutoForm.