SrsReportRunController.preRunValidate Method [AX 2012]

Validates prior to running the report.

Syntax

protected container preRunValidate()

Run On

Called

Return Value

Type: container
A container that contains two items. The first item is the SrsReportPreRunState enumeration. The second item is the message to show to the user.

Remarks

Override this method to perform validation before running a report. A common use of this method is to validate whether the time taken to run the report is acceptable.

The following are common scenarios for which to use this method:

  • Return a warning if the number of records processed is large enough to affect the user experience if the report is printed to the screen.

  • Return an error if the number of records processed is large enough that the report could timeout.

The default behavior is to run the report.

See Also

Reference

SrsReportRunController Class