Share via


SrsReportRunInterface.getReportRunAdapter Method [AX 2012]

Gets an instance of the SrsReportRunAdapter class that is required to view the report in the viewer.

Syntax

public SrsReportRunAdapter getReportRunAdapter()

Run On

Called

Return Value

Type: SrsReportRunAdapter Class
An instance of the SrsReportRunAdapter class that contains the instance of the report runtime that is required to view the report.

Remarks

If the report will be printed to screen, the report viewer needs this object. This API lets you get the instance that uses the report parameters in the data contract. Before calling this API, the user should validate the contracts by calling the validateContract method. The typical usage will be to:

  1. Get the report run interface instance from the SrsReportRunFactory class.

  2. Get the report data contract using the parmReportContract.

  3. Set the parameter values on the contract.

  4. Validate the contracts.

  5. Get the report adapter.

See Also

Reference

SrsReportRunInterface Interface