Share via


SRSReportRun.reportName Method [AX 2012]

Gets or sets the report name property.

Syntax

public str reportName([str value, boolean forceReinitialization])

Run On

Called

Parameters

  • value
    Type: str
    The new value of the report name property; optional.
  • forceReinitialization
    Type: boolean
    A Boolean value that specifies whether the SRSReportRun object must be reinitialized when changing the value of the report name property,; optional.

Return Value

Type: str
The value of the report name property.

Remarks

The forceReinitialization parameter is true if not specified. You must be very careful when you call this method and use a forceReinitialization parameter value of false. If you do this it is assumed that the report parameters and report queries are the same for the new report as they were for the report that has the old name.

Examples

The following example demonstrates how to initialize an object of the SRSReportRun class and then how to set the report name.

SRSReportRun report = new SRSReportRun();
report.reportName('ReportLibraryName.ReportName.DesignName');

See Also

Reference

SRSReportRun Class