在单行上获取数据 [英] Getting data on a single row

查看:311
本文介绍了在单行上获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个返回数据的存储过程,如下所示。 evey公司有3排信息。我试图设计一个水晶报告,在单行上显示数据,如下面的Desired Output所示。

I have a stored procedure that return the data as shown below. There is 3 rows of information for evey company. I am trying to design a crystal report to display the data on a single row as shown below under Desired Output.

如何做到这一点?

Loc设施ARtype天收入PPD

140公司ABC MCD 1724 4000 137.76

140公司ABC MRA 218 8000 327.69

140公司ABC MPD 85 7000 166.84

Loc facility ARtype days Revenue PPD
140 Company ABC MCD 1724 4000 137.76
140 Company ABC MRA 218 8000 327.69
140 Company ABC MPD 85 7000 166.84

所需输出

140公司ABC MCD 1724 4000 137.76 MRA 218 8000 327.69 MPD 85 7000 166.84

Desired Output
140 Company ABC MCD 1724 4000 137.76 MRA 218 8000 327.69 MPD 85 7000 166.84

推荐答案

按收入分组,并将您的字段详细显示在您获取个人记录的位置。

group by revenue and place your field in detail where you get individual record.

现在使用以下公式。

Shared StringVar a;

a:=a+<<Database field>>;

将上述公式放在数据库旁边,并详细记录

Place the above formula beside the database filed in detail and supress

现在创建另一个公式

Shared StringVar a;
a;

在组页脚中放置上面的公式。

Place above formula in group footer.

编辑:

创建另一个公式重置

Shared StringVar a;
a:=" ";

将此公式放入组标题中,并且抑制公式,因为这不是用户重要性。

Place this formula in group header and supress the formula as this not of user importance.

这篇关于在单行上获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆