TRVReportChartSeriesItem.DataValueString

<< Click to display table of contents >>

TRVReportChartSeriesItem.DataValueString

An expression to calculate. The result will be used as values for one chart series.

property DataValueString: TRVUnicodeString;

When generating reports, TRVReportGenerator evaluates an expression stored in this string and uses it to populate one chart series with data.

The syntax is similar to data fields, but:

curly brackets are not used;

format string is not supported.

The most typical value of this property is a field name. However, it may contain more complex expression.

Syntax:

<value string> ::= [']<full data field name>['][ <type>] | [']%<variable name>['][ <type>] | [']#<cross-tab field>['][ <type>] |
[']<aggregate function name>(<param>)['][ <type>] | [']=<expression text>['][ <type>]

<type>, if specified, may be one of: int, float.

Use TRichViewEdit.SetCurrentItemExtraStrPropertyEx to change value of this property as an editing operation (rvespcSeries0 + rvespc_Inc_Series_DataValueString + Index * rvespc_Series_Prop_MaxCount, where Index is the index in the collection).

Examples:

'Myquery:Myfield' – value of 'Myfield' field from the result of 'Myquery' row generation rule

'%count' – value of 'count' variable

Default value

'' (empty string)