Udostępnij za pośrednictwem


DefaultValue Element (RDL)

[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

Specifies the default value to use for the parameter.

Element Relationships

Relationship Element

Parent elements

ReportParameter Element (RDL)

Child elements

Element Cardinality Type

DataSetReference Element (RDL)

[0-1]

Element

Values Element (RDL)

[0-1]

Element

Remarks

The DefaultValue element must have one and only one child element: DataSetReference or Values.

The value of DefaultValue is used for the parameter if the user does not provide a parameter value. If no value is provided for DefaultValue either, the value for the parameter is Null.

When using the DataSetReference element, the default is the first value in the field specified by the ValueField element.

One and only one default value is allowed for Boolean parameters.

If one of the default values is not valid, the entire set of default values is treated as not valid.

If the sibling Prompt element is omitted, DefaultValue is required if the value for the sibling Nullable element is false or the values within the sibling ValidValues element do not contain null.

See Also

Reference

Report Definition Language XML Schema
Report Definition XML Elements

Concepts

Report Definition Language Data Types

Other Resources

Development (Reporting Services)

Help and Information

Getting SQL Server 2008 Assistance