惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

P
Proofpoint News Feed
V
V2EX
WordPress大学
WordPress大学
Google DeepMind News
Google DeepMind News
Martin Fowler
Martin Fowler
小众软件
小众软件
Blog — PlanetScale
Blog — PlanetScale
月光博客
月光博客
The Cloudflare Blog
T
Tailwind CSS Blog
H
Help Net Security
腾讯CDC
爱范儿
爱范儿
人人都是产品经理
人人都是产品经理
H
Hackread – Cybersecurity News, Data Breaches, AI and More
The GitHub Blog
The GitHub Blog
Microsoft Security Blog
Microsoft Security Blog
Stack Overflow Blog
Stack Overflow Blog
D
DataBreaches.Net
C
Check Point Blog
量子位
酷 壳 – CoolShell
酷 壳 – CoolShell
美团技术团队
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com

博客园 - laughterwym

edwin-wang.com GridView mouseover的高亮 GridView vs DataGrid 来句老套的~~~Happy 牛 Year !!! Autopostback提示“该对象不支持此属性或方法”(Object doesn't support this property or method) Grub vga模式 个人常用软件替代列表,支持开源 One more time, One more chance 获得Access数据表名列表 初面纪念 关于Windows 2003 ".." 表示父路径解决方法 Windows 2003 SD读卡器驱动方法 残败的考试 一段时间的忙碌…… Standards: big benefits for small business 国庆、中秋快乐!!! 2 weeks later 2周,开始忙碌中适应这里的生活了……累 I Do Believe
关于水晶报表分页统计的开发经验
laughterwym · 2007-02-17 · via 博客园 - laughterwym

最近在修改学校的程序的发现个很大的问题,水晶报表运行总计字段的统计功能是针对整份报表的,而一般单页页脚的统计是针对当前页的。翻了半天business objects的文档,没有找到,后来google了半天,总算找到了解决方法。使用公式编辑器的自定义字段公式,主要使用whileprintingrecords;这个命令,这是当页面写入时调用此命令下的程序。

stu_insurance_1

stu_insurance_2

formula_1
whileprintingrecords
;
global numbervar BFtotal;
global numbervar RStotal;
global numbervar BTtotal;
BFtotal:=0;
RStotal:=0;
BTtotal:=0;

formula_2
whileprintingrecords
;
global numbervar BFtotal;
global numbervar RStotal;
global numbervar BTtotal;
BFtotal:=BFtotal+{VIEW1.保费};
RStotal:=RStotal+1;
BTtotal:=BTtotal+{VIEW1.补贴};

本页保费
whileprintingrecords
;
global numbervar BFtotal;


本页补贴
whileprintingrecords
;
global numbervar BTtotal;


本页人数
whileprintingrecords
;
global numbervar RStotal;

formula_1是页面的初始化,主要是清零操作,需要存放在页面的最初,页眉处。
formula_2是每次调用的计数,存放在计数体内部,这里我放在了详细资料内。
而最后的本页保费、本页补贴、本页人数存放在页脚的用作计数统计的显示使用。