Share via


LedgerJournalSummaryController_ES.preRunValidate Method [AX 2012]

Provides an opportunity for validation before the report is run.

Syntax

protected container preRunValidate()

Run On

Called

Return Value

Type: container
A container that holds two items. The first item is the SrsReportPreRunStateenumeration, and the second item is the message that is displayed to the user.

Remarks

Override this method to perform validation before a report is run. A common use of this method is to validate whether the time that is required 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 that are 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 that are processed is large enough to cause the report to time out.

The default behavior is to run the report.

See Also

Reference

LedgerJournalSummaryController_ES Class