I am using BIRT in our project. That has a requirement is dynamic display three different kind of graph and switch between different graph. It is my first time to use BIRT. So I don’t know how to control the chart in our report of BIRT. I found a document of BIRT introduced how to insert script code in the report scope. The detailed description following:
The First: I defined a table element that has two rows and columns.
The Second: in the first row and first column. I insert the text element and choice the element type is HTML, so you can edit html element, such as I insert three “input” element of html, its type is radio. When I click one of three radio elements, a kind of graph will be shown and the others will be hidden. So you must defined row and column “bookmark” property. You can use the bookmark in your script, like this “document.getElementById(“bookmark”)”,obtain the element object.
Third: edit your script code, like following:
function DisplayCustomer(id0,id1,id2) {
document.getElementById("chart"+id0).style.display="block"
document.getElementById("chart"+id1).style.display="none"
document.getElementById("chart"+id2).style.display="none"
}
Fourth: through the above code display or hidden the different graph.
分享到:
相关推荐
数据库insert语句生成器-可生成任何数据库的inser语句 个人珍藏版一般人我可不让他下载哦 大家赶紧下吧
inser update delete sql
(1)编写顺序表基本操作函数 ① 初始化线性表void InitList(List *L,int ms) ② 向顺序表指定位置插入元素void InsertList(List *L,int item, int rc) ③ 删除指定元素值的顺序表记录void DeletList1(List *L, ...
全国各个省市最新四级联动数据库,sql文件,可直接导入数据库。
程序结合了MVC3+EntityFramework4.3.1+Wcf 标准案例实现,可供学习参考。
中间传输模块
usage: tardocken [-h] [-p PATH] [-d DOCKERFILE] [-i DOCKERIGNORE] contextReplace Dockerfile and/or replace file path in contextpositional arguments: context path to contextoptional arguments: -h, --...
mysql 的replace into实例详解 replace into 跟 insert 功能类似,不同点在于:replace into 首先尝试插入数据到表中。 1、如果发现表中已经有此行数据(根据主键或者唯一索引判断)则先删除此行数据,... replace i
Summernote-音频 插件通过 URL 或文件上传插入音频。 基于 Summernote 已经提供的 ImageDialog 和 VideoDialog。 安装 在包含 Summernote 之后包含插件脚本: <!-- include jquery, bootstrap, ... [ 'inser
判断是否存在,存在就update,不存在insert,不是用存储过程解决的。
MOVX @DPTR,A INC DPTR \\数据指针DPTR自加一 DJNZ R0,NEXT \\判断是否跳转到NEXT或继续向下执行 MOV DPTR,#3050H MOV R0,#70H MOV R2,#20H NEXT1: MOVX A,@DPTR MOV @R0,A INC DPTR INC R0 DJNZ R2,NEXT1 SJMP $ \...
省市县三级行政区域划分记录,包含建表语句及inser语句,可直接食用.
待排序记录的类定义为:int GetKey( ) const { return key;// 其他“辅助信息”域算法 InsertSortAvoid Inser
可能大家都知道我们保存相册到Android手机的时候,然后去打开系统图库找不到我们想要的那张图片,那是因为我们插入的图片还没有更新的缘故,先讲解下插入系统图库的方法吧,很简单,一句代码就能实现 代码.../** * Inser
表格生成SQL插入语句,提供案例表格,简单的将表格的数据按特定格式生成为对应的inser into 语句,方法插入数据到数据库中
void inser(long b); void print(); void find(long b); void searchname(char *s); Node * del(long n); void sort(int flag); void menu(); void main() { char choose; int flag=1; while (flag) { menu(); //...
很强的数据库小工具,支持多种数据库,可以把数据表的数据生成Inser into sql 语句,数据表结构生成sql语句,及SQL语句与Delphi互换等
VALUES 是 INSER 命令的子句。 INSERT INOT 表名(列名1,列名2,…) VALUES(值1,值2,…) --语法: --SELECT * FROM ( --VALUES -- (1,2,3,......) -- ,(1,2,3,......) -- ,(1,2,3,......) -- ,(1,2,3,......) -- ,(1,...
主要介绍了SQL Server中数据行批量插入脚本的存储实现 的相关资料,需要的朋友可以参考下