SRSReportRun.reportParameter Method [AX 2012]
Gets or sets the value of a report parameter given the report parameter name and optionally the new value
Syntax
public SRSReportParameter reportParameter(str parameterName, [SRSReportParameter newReportParameter])
Run On
Called
Parameters
- parameterName
Type: str
The name of the parameter to find.
- newReportParameter
Type: SRSReportParameter Class
The new SRSReportParmeter object to use for the report parameter if supplied; ignored if nullNothingnullptrunita null reference (Nothing in Visual Basic); optional.
Return Value
Type: SRSReportParameter Class
The SRSReportParameter object that has the specified name.
Remarks
Note that if a report parameter will be added or removed you must use the Map object that is returned from the reportParameters method. Also, if a value other than null Nothing nullptr unit a null reference (Nothing in Visual Basic) is supplied for the newReportParameter, the parameter is updated only if a parameter with the supplied name is found.