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:

 

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值