在 BIRT 中选择与平面文件不同的文件
我有一个 CSV 文件,看起来像这样:
Test, Result, Case, Type
------------------------
t1 , pass , c1 , Functional
t2 , fail , c1 , Operational
t3 , fail , c2 , Functional
t4 , fail , c2 , Operational
我想定义一个新的数据集,它是“类型”列的唯一值的单列列表:
TestType
--------
Functional
Operational
Regression
如果我要访问数据库,我可以使用一些 SQL 但似乎
SELECT DISTINCT type
FROM thatFile
在 BIRT (Actuate BIRT Designer v11) 中我没有那么奢侈。现在我正在使用数据对象...我应该使用信息对象吗?
I have a CSV file that look something like this:
Test, Result, Case, Type
------------------------
t1 , pass , c1 , Functional
t2 , fail , c1 , Operational
t3 , fail , c2 , Functional
t4 , fail , c2 , Operational
I'd like to define a new dataset that is a single-column list of the unique values of the 'Type' column:
TestType
--------
Functional
Operational
Regression
If I were hitting a database, I could use some SQL like
SELECT DISTINCT type
FROM thatFile
But it seems in BIRT (Actuate BIRT Designer v11) I don't have that luxury. Right now I'm working with data objects...should I be using an information object instead?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我忘了我问过这个,所以我不妨记下我做了什么。事实证明,信息对象确实是一条很好的途径。否则,数据对象同样可以使用 - 创建一个新数据集并在向导的“查询”选项卡中使用“不同”。
Forgot I asked this, so I may as well jot down what I did. Turns out that Information Objects will indeed be a fine route. Otherwise, a data object is equally okay to use - create a new dataset and use 'distinct' in the 'query' tab of the wizard.