Use Expressions and Shape Data (Expression Bindings)

Use Expressions

  • Nov 26, 2019
  • 2 min to read

Use expressions to retrieve and format datacreate calculated fields and calculate summariesconditionally shape data and change a report control's appearance.

#Expression Syntax

An expression is a string that is parsed and processed to evaluate a value. Expressions consist of field names, constants, operators, and functions. Field names are wrapped in square brackets.

"[Quantity] * [UnitPrice] * (1 - [BonusAmount])"

"[FirstName] + ' ' + [LastName]"

"[Country] == 'USA'"

"[OrderDate] > #8/16/1994# AND [Quantity] > 20"

You can use operators, functions, and constants in your expressions.

Refer to the CustomFunctions class description for information on how to implement custom expression functions in reporting applications.

#Expression Editor

The Report Designer's Expression Editor provides functions, operators, data source fields, report elements, constants, and variables to construct expressions.

Expressions_ExpressionEditor

The Expression Editor highlights an expression's syntax and supports intelligent code completion (it suggests functions and available data elements as you type).

expressions_expressioneditor_intellisense132786.pnguploading.4e448015.gif轉存失敗重新上傳取消Expressions_ExpressionEditor_Intellisense

The Expression Editor displays all the errors it finds in the specified expression.

Expressions_ExpressionEditor_ErrorValidation

#FilterString Editor

The Report Designer's FilterString Editor allows you to specify the FilterString property of a report, XRCrossTab, or XRChart's Series.

The FilterString Editor provides a visual interface where you can use an unlimited number of conditions and combine them with logical operators to create filter criteria. You can also switch to the Text mode and type a filter string.

Expressions_FilterEditor

The FilterString Editor highlights an expression's syntax and supports intelligent code completion (it suggests functions and available data elements as you type).

FilterEditor_New_Features

Shape Data (Expression Bindings)

  • Apr 19, 2019

Tutorials in this section describe how to shape and display report data.

TIP

See Data Binding Modes for more information about the available bind modes.

See Shaping Data (Legacy Data Bindings) for alternative ways to shape report data.

The following tutorials are available:

 

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章