将数字字段更改为匹配的文本字段
Change a number field to a matching text field
如何更改报告中的数字值以显示为预定字符串之一?
例如,Status 列中内容为“1”的所有内容更改为"Processing",内容为“2”的所有内容更改为"Cancelled",内容为“3”的所有内容更改为"Completed" ].
另外,这可以在界面中完成还是必须在代码中完成?
在 crystal 报告中创建公式字段。公式的逻辑类似于:
if ({myfield}=1) then "Processing"
else if ({myfield}=2) then "Cancelled"
else if ({myfield}=3) then "Completed"
然后将该公式字段放入您的报告中。
如何更改报告中的数字值以显示为预定字符串之一?
例如,Status 列中内容为“1”的所有内容更改为"Processing",内容为“2”的所有内容更改为"Cancelled",内容为“3”的所有内容更改为"Completed" ].
另外,这可以在界面中完成还是必须在代码中完成?
在 crystal 报告中创建公式字段。公式的逻辑类似于:
if ({myfield}=1) then "Processing"
else if ({myfield}=2) then "Cancelled"
else if ({myfield}=3) then "Completed"
然后将该公式字段放入您的报告中。