2.334.2 QueryParameter.Value

The QueryParameter.Value element specifies an expression that evaluates to the value to pass to a data source when executing the current Query. The expression can refer to ReportParameters, but it MUST NOT contain references to report items or fields, and it MUST NOT use aggregate functions.

When a query parameter is used in a query to retrieve the data for ReportParameter.Values or ReportParameter.DefaultValue and when the expression contains a ReportParameter reference, the expression MUST reference only ReportParameters that occur earlier in the ordered list of ReportParameters than the referencing ReportParameter. The value for this QueryParameter is then taken from the value that is specified or chosen for the earlier ReportParameter.

The QueryParameter.Value element MUST be specified, and its value MUST be a Variant or VariantArray or an expression that evaluates to a Variant or VariantArray.

The following are the parent element and attribute of the QueryParameter.Value element.

Parent elements

QueryParameter

Attributes

QueryParameter.Value.DataType

The following is the XML Schema definition of the QueryParameter.Value element in RDL 2003/10 and RDL 2005/01.

 <xsd:element name="Value" type="xsd:string" minOccurs="0" />

The following is the XML Schema definition of the QueryParameter.Value element in RDL 2008/01, RDL 2010/01, and RDL 2016/01.

 <xsd:element name="Value" type="StringWithDataTypeAttribute" minOccurs="0" />