开发者

How to set two column having two different selection criteria in crystal report?

开发者 https://www.devze.com 2023-02-03 08:24 出处:网络
How to set two column having two different selection cri开发者_StackOverflow中文版teria in crystal report?If you\'re talking about different Record Selection criteria for each column... in the truest

How to set two column having two different selection cri开发者_StackOverflow中文版teria in crystal report?


If you're talking about different Record Selection criteria for each column... in the truest sense, it's not possible.

A possible workaround is using formula fields for your two columns and adding data logic within those formulas.

For example, say you want Column 1 to show values where a field is equal to 'A' and Column 2 to show values where a field is equal to 'B':

{@Column1Field}: if {table.column1field} = "A" then {table.column1field} else ""

{@Column2Field}: if {table.column2field} = "B" then {table.column2field} else ""

0

精彩评论

暂无评论...
验证码 换一张
取 消