The Controller
class acts as the controller of the Model-View-Controller design pattern. In AX, the controller role is played by the SrsReportRunController
class. The Controller
class performs the following activities:
Calls
SrsReportRunInterface
to parse RDLGets report contracts
Creates necessary UI Builders and invokes them
Call to validate on contracts
Saves to the
SysLastValue
table
The Controller
class must be overridden in the following mentioned scenarios:
Change contracts before running a report. For example, to change the query based on the parameters in the form. For this, the
modifyReportContract
method is used.React to form controls events. For this, override methods/events are used.
Add validations which are not part of the
contract
class or report data tables. For this, override thevalidate
method and call thesuper
method.Change the report name or design based on parameters to add capabilities of rendering multiple reports or multiple report designs using the...