TContentForm This class is a specialization of TContentBase class. It is responsible for redirecting an URL to a IWForm instance, i.e., whenever your IntraWeb application receives a request which path matches the path registered for the TContentForm instance, the associated IWForm will be used to respond to the request. UnitIW.Content.FormClass hierarchyTObject -> TContentBase -> TContentFormMethods
Create [Public]
Declaration: constructor Create(aFormClass: TIWAppFormClass; DoBeforeExecuteCallback: TBeforeExecuteHandlerProc = nil); reintroduce; overload;
Description: Constructs an instance of the class TContentForm and initializes its data.
Parameters:
- aFormClass (TIWAppFormClass): The form class used with this content handler
- DoBeforeExecuteCallback (TBeforeExecuteHandlerProc): Reference to a TBeforeExecuteHandler procecure. This event will be triggered before execution of the content handler.
Create [Public]
Declaration: constructor Create(const aFormClassName: string; DoBeforeExecuteCallback: TBeforeExecuteHandlerProc = nil); reintroduce; overload;
Description: Constructs an instance of the class TContentForm and initializes its data.
Parameters:
- aFormClassName (string): Name of the IWAppForm class, e.g, ‘TIWForm1’. This allows you to register a TContentForm instance using only the form class name. To use this type of registration, you must register the form class using Classes.RegisterClass() method, because IntraWeb will retrieve this class using RTL’s FindClass() method.
- DoBeforeExecuteCallback (TBeforeExecuteHandlerProc): Reference to a TBeforeExecuteHandler procecure. This event will be triggered before execution of the content handler.
Properties
FormClass: TIWAppFormClass; [Public, Read only]
The class type of TIWAppForm
FormClassName: string; [Public, Read only]
The name of the TIWAppForm class
UseExistingInstance: Boolean; [Public, Read only]
This should be TRUE if an existing instance of this form class should be used to handle the request. It should be set to FALSE, otherwise.