1、在grid中得合适位置添加 切换指标元素控件。如:html中得列表列表控件
<script type="text/javascript"> function funSelectIndex() { var tar = new String(document.getElementById("selectIndex").value); var temp = new String(location.href); var targetURL = new String(); if(temp.indexOf("&startTime=") != -1 ){ targetURL = temp.substring(0, temp.indexOf("&startTime")); }else{ targetURL = temp; } targetURL += "&startTime=<VALUE-OF>params["startTime"].value</VALUE-OF>"; targetURL += "&endTime=<VALUE-OF>params["endTime"].value</VALUE-OF>"; targetURL += "¶Dep=<VALUE-OF>params["paraDep"].value</VALUE-OF>"; targetURL += "¶Termp=<VALUE-OF>params["paraTerm"].value</VALUE-OF>"; targetURL += "&dealerName=<VALUE-OF>params["dealerName"].value</VALUE-OF>"; targetURL += "&pSelectIndex=" + tar; alert(targetURL); location.replace(targetURL); } </script> <select id="selectIndex" onchange="funSelectIndex()"> <option value="amount" <VALUE-OF>if(params["pSelectIndex"].value=="amount"){selectted="selected"}</VALUE-OF>>实付金额</option> <option value="cost" <VALUE-OF>if(params["pSelectIndex"].value=="cost"){selectted="selected"}</VALUE-OF>>实收金额</option> <option value="orderNum" <VALUE-OF>if(params["pSelectIndex"].value=="orderNum"){selectted="selected"}</VALUE-OF>>订单数量</option> <option value="price" <VALUE-OF>if(params["pSelectIndex"].value=="price"){selectted="selected"}</VALUE-OF>>课单价</option> <option value="perforpercent" <VALUE-OF>if(params["pSelectIndex"].value=="perforpercent"){selectted="selected"}</VALUE-OF>>成单率</option> </select>
2、 设置器效果
3、在报表参数中定义选择参数项。如:selectIndex
4、点击饼图 在“扇面大小”中添加判断js脚本
if(params["pSelectIndex"].value=="amount") { row["paidamount"] }else if(params["pSelectIndex"].value=="cost") { row["costamount"] }else if(params["pSelectIndex"].value=="orderNum") { row["ordersNum"] }else if(params["pSelectIndex"].value=="price") { row["ordersNum"] }else { row["perforpercent"] }
目的是根据pSelectIndex选择的数值实现对 统计指标的切换
5、运行效果
相关推荐
APACHE BIRT图表学习笔记,APACHE BIRT图表学习笔记
群里朋友需要,自己摸索出来的birt报表二级级联下拉的实现,用自带数据源,可以直接运行。
使用Birt API 实现动态列参数报表 传入参数:columnNames字符串,动态绑定birt模板展现列,实现动态参数列报表。
Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意Birt报表注意
BIRT4.4导出xlsx格式实现单sheet存储文档
一个数据集中的数据绑定到另一个数据集,属于内绑定. 包括实现文档及报表源文件.
birt报表合并以及表头锁定功能的实现。。。。。。。。。。。。。。。。。。。。。。。。。。。。。
javaScript重写chart render 事件,实现birt Chart 图表根据数据内容动态调整chart尺寸大小
BIRT报表应用
BIRT――商业智能和报表工具。 BIRT是一个Eclipse-based开放源代码的报表系统,它主要是用在基于Java和J2ee的web应用程序上。BIRT主要由两部分组成:一个是基于Eclipse的报表设计器和一个可以添加到应用服务器的运行...
该文档介绍了birt中按组进行小计的具体实现办法,同时也介绍了标本中自动编写行需要的办法,希望对你在制作birt报表时能有所帮助.
Eclipse Business Intelligence and Reporting Tools (BIRT) is an opensource, Eclipse-based reporting system that integrates with your Java EE application to produce compelling reports. BIRT is the only ...
BIRT学习资料 BIRT学习资料 BIRT学习资料 BIRT学习资料
BIRT Business Intelligence and Reporting Tools 是为 Web 应用程序开发的基于 Eclipse 的开源报表系统 特别之处在于它是以 Java 和 JavaEE 为基础 BIRT 有两个主要组件:基于 Eclipse 的报表设计器 以及部署到应用...
birt api 帮助文档。 对于使用birt开发报表的开发人员绝对有帮助。
birt 视频教程 birt 视频教程 birt 视频教程
Birt使用小结,运用birt api来创建报表
如何选择图表数据集 如何对类别系列数据进行分组 如何设置轴的数据类型和格式 如何更改图表预览首选项 第十六章、对图表进行布局和格式化 如何设置图表背景色 如何定义定制颜色 如何为具有深度的图表或三维图表设置...
网罗了网络上大家使用Birt的一些经验技巧,这个RAR文件主要包括: 1、Birt参数使用方法 2、Birt Java 整合开发详解 3、应付大部分应用的birt的css样式 4、在团队中使用birt 5、Birt经验谈
你是否在为每一张birt报表都需要设置数据源,而修改时又需要没张报表修改数据源配置而犯愁呢!有这这个文档后你就可以实现动态数据源配置,只需要修一个地方,所有报表的数据源都可以更改!快看看吧!