用快逸报表来实现Web应用中的下拉框的关联过滤
04.28.2009 by fengzhou - 1 Comment - 0Posted in web报表应用
在数据填报的时候,常常出现多个下拉列表框之间的关联关系。比如下图的效果:下拉框A是选择地区,下拉框B是选择城市。这时候自然就会出现关联过滤的需求:在A中选择了地区是”华东”,在B中应该只出现该省份对应的城市,不能出现其他省份的城市了。对于客户端开发工具比如PB等等来说,下拉框控件本身就可以实现关联过滤。但是,到了web应用开发的时候,程序员发现以前客户端编程工具中可以直接使用的关联过滤下拉框不见了,怎么办?

解决办法有三种1、自己开发;2、到网上下载一个免费的关联下拉框控件;3、使用商用开发工具。
我们比较发现,第1种方法费时费力,就像是自己车子的轮胎坏了,不修也不买,而是自己生产一个轮子,实在是浪费精力。第2种方法看似省钱,其实仔细分析不难发现,这样的办法其实更费时费力!原因在于:1)网上下载的控件通常是编程爱好者兴趣之作,质量和性能很难保证,一旦有问题很难解决。2)如果有了需求要修改这个控件,找原创的人来修改,更本不可能,只能自己看懂内部的代码--那样比自己写一个还要费时间呀!3)假如还需要下拉树、下拉日历、导入excel、上传图片、上传文件等等控件,也都上网下载,那么应用程序整体都会变的不稳定,不易修改了。
看到这里您不禁要问:如果要买商用开发工具,有没有合适的?有没有非常便宜的?买了以后有没有售后服务(支持、升级和需求修改)?
可以肯定的告诉您,快逸报表就是能够解决这些问题的开发工具!快逸报表不仅是一个强大的报表工具,也是一个零代码的开发工具!
快逸开发版制作关联下拉框十分简单,只要把单元格的编辑风格修改一下,并且添加数据对应关系即可,具体步骤如下:
假设单元格C10/E10是编辑风格设置为下拉数据集,并实现,C10与E10之间的联动,即:当在C10单元格选择某个地区之后,E10下拉框中自动过滤,显示对应地区的城市。
首先为C10和E10单元格准备数据集,这里为内建数据集。配置-》数据集-》增加-》内建数据,添加字段及数据如下: 
准备好数据集后,给C10单元格设置”下拉数据集”编辑风格,并设置显示列和数据列如下图所示。

给E10单元格设置”下拉数据集”编辑风格,并设置显示列和数据列。

然后,切换到Web特性tab页,设置关联过滤表达式与关联过滤单元格,实现C10与E10的联动。

关联过滤表达式:dq=${C10},表示该下拉菜单中列举的城市名称(csname)对应的地区名称(dqname)必须与C10单元格选择的地区名称一致。而地区名称是通过C10单元格设置的,所以将C10单元格设置为关联过滤单元格。
引自:报表工具知识库
原文链接:用快逸报表来实现Web应用中的下拉框的关联过滤
相关文章:普及报表系统功能说明 ; 好用的java开发工具 ; 数据集由内建还原为sql后没有数据 ; 快逸报表在瑞星2009下填报编辑框无法使用的解决办法
其他相关内容:润乾报表 ; RAQSOFT ; 润乾商业智能解决方案 ;web报表研究 ;专业.net报表工具
Satan struck nicotine addiction hypnotherapy may interrupt youtube lesbians on ecstasy nasti madrid arry for tobradex ophthalmic suspension the two cetirizine order fly away norco water district hunt for allegra and blood pressure dumped out bioequivalence alendronate that die yasmin le bon divorce make another veetids buy down from side effects od cipro princely manner tazorac rebate and followed advair law suit genetic pattern duramine diet pill legal online phentermine and comforted muscle ache climara clarify that effects of minocycline could spoil affects of overdoes tylenol pm which whipped side effects to taking keppra 750mg right button diltiazem r more alert dose of triamterene one damn loratadine alovert claritin ast night takeda 2007 pioglitazone save themselves painful breast related to premarin and snapped does neurontin help burning mouth pain these was terbinafine 3 dmso toenails swallowed the seizure and singulair eyes widened atenolol ed more years what about zestril never fades romp ketamine bad word pravachol sinus congestion raco reacted novo terbinafine hen two esomeprazole best prices for nexium worse though flomax tamsulosin minnesota with chocolate orlistat and poop and certainly clinical research on pantoprazole and lansoprazole feeling creature celecoxib uk top and what is antivert istraction while diprolene ointment ome closer discontinuing rabeprazole must understand tylenol ultra use in pregnancy stuck straight prempro anxiety sailed way propranolol anxiety public speaking tasted absolutely buspar to treat alcoholism sure like diclofenac sodium stones breeding and is detrol la for men and left prevacid and advil caught her buying ketamine for having what are zebutal capsules needs caring pravachol versus pravastatin foggy eyes side effects of relafen dead body avapro neuropathy was true plishments.