2

我有一个视图,其中有一个名为 action 的虚拟列。我有一个公式 {@action}

如果 {abc_view.name} 以 "abc" 开头,则 {abc_view.action} = "表示动作" 否则 {abc_view.action} = ""

当我从记录过滤器部分调用这个公式时,我得到的只是水晶报告 2.0 中用于 Eclipse 的虚拟列操作下的“操作”。我如何达到我的目的。请帮帮我。

4

1 回答 1

0

You can hardcode the dummy column in oracle view while creating the view where COL1 and COL2 columns have actual value like the below

CREATE OR REPLACE VIEW ABC_VIEW
AS 
SELECT 
CASE WHEN name like 'ABC%'
THEN 'Represents action' 
ELSE
ACB.ACTION
END AS ACTION,COL1,COL2 FROM ABC;
于 2014-04-04T11:04:43.070 回答