StoreResultsHandler (open)
Syntax
LOADLIB "mod::publisher/lib/webtools/formhandlers/storeresults.whlib";
OBJECTTYPE StoreResultsHandler
Constructor
- MACRO NEW() (inherited from FormHandlerBase)
Properties
- PROPERTY form (inherited from FormHandlerBase)
- PROPERTY settings (inherited from FormHandlerBase)
The handler settings, containing the handler node attributes and settings from the handler's parser function
Functions
- STRING FUNCTION DetermineNewSubmissionStatus(RECORD result, OBJECT formresults) (inherited from FormHandlerBase)
The new submission status (eg "duplicate", "confirm", "pending") when landing on the confirmation page
- RECORD ARRAY FUNCTION GetConfirmationFormSubmitTypes() (inherited from FormHandlerBase)
- STRING FUNCTION GetFormEditTitle() (inherited from FormHandlerBase)
Get the title for use in the form editor
- BOOLEAN FUNCTION IsCancelHandler() (inherited from FormHandlerBase)
- BOOLEAN FUNCTION IsConfirmationHandler() (inherited from FormHandlerBase)
- BOOLEAN FUNCTION IsRerunnable() (inherited from FormHandlerBase)
Return if this handler can be re-run on existing results
- BOOLEAN FUNCTION IsSubmitHandler() (inherited from FormHandlerBase)
- BOOLEAN FUNCTION IsTestableForResults() (inherited from FormHandlerBase)
Return if this handler can be tested at result-level
- MACRO PrepareForFrontend() (inherited from FormHandlerBase)
Prepare for use with the frontend (rendering, rpc or validation) (WebHare >= 4.34.1)
- MACRO PrepareRendering() (inherited from FormHandlerBase)
Prefill form fields
- MACRO PrepareResultData() (inherited from FormHandlerBase)
Prepare result data
- MACRO PrepareSubmit(OBJECT work) (inherited from FormHandlerBase)
Hook into submission. No errors yet and any store results handler has already run
- MACRO RunConfirmationUpdates(RECORD formresult) (inherited from FormHandlerBase)
Invoked before we show a confirm, pending or duplicate page
- MACRO RunTestResult(OBJECT parent, RECORD result, RECORD options) (inherited from FormHandlerBase)
Actually run the test
- RECORD FUNCTION Submit(OBJECT form, RECORD extradata, RECORD options)
- RECORD FUNCTION UpdateResultAfterSubmit(RECORD result) (inherited from FormHandlerBase)
Postprocess result after successful submissions
- RECORD FUNCTION UpdateResultPendingSubmit(RECORD result) (inherited from FormHandlerBase)
Postprocess result after handling a pending submissions (confirmation handlers)
- MACRO ValidateForm(OBJECT work) (inherited from FormHandlerBase)
Validate form results
- MACRO ValidateFormFile(OBJECT work, OBJECT curform, OBJECT contexts) (inherited from FormHandlerBase)
Validate the form file before saving it (invoked by editor)