SRSReportRun.reportQuery Method [AX 2012]

Gets or sets the query in the map of the reportQueries property that has a query from a map object that uses the supplied query name and optionally a new query value.

Syntax

public Query reportQuery(str queryName, [Query newQuery])

Run On

Called

Parameters

  • queryName
    Type: str
    The name of the query to obtain or set.
  • newQuery
    Type: Query Class
    The new value of the query if supplied; otherwise, ignored; optional.

Return Value

Type: Query Class
The current value of the query in the map of the reportQueries property.

Remarks

Note that if you add or remove a report query you must use the map object that is returned from the reportQueries method. Also, if a value that is not null Nothing nullptr unit a null reference (Nothing in Visual Basic) is supplied for the newQuery parameter, the query will be updated only if a query with the supplied name is found.

Also notice that the map key for queries is not the query name but the name of the report parameter in which the record ID of the stored query is passed to SSRS.

See Also

Reference

SRSReportRun Class