birt

项目经验总结-Eclipse图表工具Birt的使用技巧(二)

≯℡__Kan透↙ 提交于 2019-11-30 14:04:29
作为 Eclipse图表工具Birt的使用技巧(一) 的后续,上一篇主要说明了Birt报表创建和使用的基本步骤和过程,本文旨在介绍一些常用的技巧,都是比较实用而且经过我本人实践可行的,希望能给需要的人带来一些帮助. 1. 报表参数传递 参数传递的应用场景比较广泛,在Birt设计器中有两个位置涉及到参数,一个是DataSet数据集创建的时候,有一个Parameters选项,另外就是在Data Explorer中有一个Report Parameters,这里主要介绍后者.因为Birt参数的对外接口就是Report Parameters,数据集中的参数也要通过这个报表参数去设置. 首先新建一个报表参数,如图: 这里创建一个默认名称的参数,其中Display type表示这个参数的显示类型,与它边上的hidden选项对应,如果hidden不打勾,说明这个参数会以Birt默认的View界面的形式表现.可以是多种形式,就是弹出一个窗口,要用户输入,这不符合项目的需要,所以通常我们将参数hidden.如下: 这时创建好了参数,说一点,这个参数的可作用范围是整张报表的rptdesign文件,在可以输入脚本和表达式的地方都可以通过params["NewParameter"].value使用.上面hidden复选框上面还有一个Is Requeired选项,如果勾选,意味必须要传递这个参数

Integrate BIRT in existing webapp

倾然丶 夕夏残阳落幕 提交于 2019-11-30 10:11:01
I would like to add the BIRT reporting engine to an existing webapp in Tomcat. I don't need the BIRT viewer, I really only want to be able to run the reports from a url like http://localhost:8080/birt/output?__report=test.rptdesign&sample=my+parameter and use the different export options pdf, xls, doc, html. The integration guides I've found so far all include the viewer and writing my own servlets to handle different formats. I was hoping someone knew simply which servlet mappings from the report-engine web.xml file I needed and which jars I would need to include from the lib directory for

how to get rid of network error(TCP_ERROR) in BIRT?

Deadly 提交于 2019-11-30 10:06:59
问题 I am new to birt and would like to see if it meets our reporting needs. I am trying to use BIRT from my Windows 7 laptop to create a report which accesses a MySQL database. I am using the com.mysql.jdbc.Driver driver and connecting to the mysql database using the URL: jdbc:mysql://servername:3306/databasename and the test connection is successful and event previewing the data from the Data Set is successful but when I try and run the report I get the error Network Error (tcp_error) A

How to create a BIRT dataset that accepts multiple (CSV) values that it can be used inside “IN” clause in select statement

余生颓废 提交于 2019-11-29 16:45:12
I am trying to create a dataset in BIRT report that contains a select statement with "IN" clause and pass a comma separate value in place of "?" using a BIRT parameter that accepts multiple values. for eg : select * from table where ID in ( ? ) I tried adding this in my dataset "select * from table where ID in ( params["paramer_name"].value)" but it is not working. I do not want to use the built in Filter of BIRT dataset because using the "IN" clause in query reduces the cost of query to lot of extent in my database server. Is there a simple way to do the same without adding long java scripts

Integrate BIRT in existing webapp

牧云@^-^@ 提交于 2019-11-29 14:49:47
问题 I would like to add the BIRT reporting engine to an existing webapp in Tomcat. I don't need the BIRT viewer, I really only want to be able to run the reports from a url like http://localhost:8080/birt/output?__report=test.rptdesign&sample=my+parameter and use the different export options pdf, xls, doc, html. The integration guides I've found so far all include the viewer and writing my own servlets to handle different formats. I was hoping someone knew simply which servlet mappings from the

BIRT报表使用中碰到的两个问题

自闭症网瘾萝莉.ら 提交于 2019-11-29 14:14:08
最近使用Eclipse官方的报表工具开发,好歹完成了任务,期间真是 各种怒!下面稍微汇总下 BIRT报表使用出现的问题: 1. OutOfMemoryError: PermGen space : 这是个奇葩的异常,用Eclipse+Tomcat 启动就会抛出这个异常,OK,这个问题对于开发者来说是很容易解决的,改下Tomcat配置,发现不行!Eclipse运行内存加大,不行!JDK缓存配置加大,不行!各种不行,哥完全误解了,后来实在无聊的时候,抛开Eclipse,直接运行Tomcat/bin/startup.bat,奇葩,可以了!好吧,至今没找到原因!(求解释!) 另:其实这个BUG,在03年就有人向SUN公司提了,所以找到了这句好玩的话: OutOfMemoryError: PermGen space----A bug this critical is open since 2003? Absolutely shameful. 2. 版本不匹配报错!此种错误一般是因为你的Eclipse插件版本和项目使用的BIRT核心包版本不匹配造成的! 如果总是报你的相关目录底下没有找到报表文件,那么你可以象这样尝试解决: a. 修改如下两行:(下面代码仅做参考) <report xmlns="http://www.eclipse.org/birt/2005/design" version="3

Createprocess error=206; the filename or extension is too long [duplicate]

痞子三分冷 提交于 2019-11-29 13:40:59
This question already has an answer here: CreateProcess error=206, The filename or extension is too long when running main() method 19 answers I know this question has been asked before, but I wasn't able to fix it using solutions from other posts. I'm trying to compile a complex hierarchy of gwt projects using maven. Everything worked fine until I had to add one more library, more specifically: org.eclipse.birt.runtime Now I get this error: [ERROR] Failed to execute goal org.codehaus.mojo:gwt-maven-plugin:2.6.1:debug .... ..... [Lots of jars, many containing birt, no duplicates though] .....

What should be committed to the repository in the eclipse workspace?

不问归期 提交于 2019-11-29 11:30:40
I have a eclipse installed to work with BIRT reports. What files in the workspace should be committed to the repository and what files should not? VonC Basically, any file able to help a developer checkout the repo and (almost) immediately open the project to work on it. That should include at least eclipse files like .project , .classpath , and some IDE settings. They might be some BIRT-specific settings as well. See also: Do you keep your project files under version control? When working with Eclipse, should I add the workspace to the source control? 来源: https://stackoverflow.com/questions

BIRT: Alternating row Color in a table group

蓝咒 提交于 2019-11-29 09:28:13
Has anybody an idea of how the highlighting condition has to look like, to create alternating rows in groups? I want the every row with an even number of a table group (not of the whole table) to have a different color. Thanks in advance! :-) Patrick P.S.: I'm using BIRT 2.1.3 Add a highlight to the row like this: row[0] % 2 Equals 0 This works because row is the current row and row[0] is the rownumber. row[1], row[2] etc. are the data values for the current row. (Source: http://dev.eclipse.org/newslists/news.eclipse.birt/msg03977.html ) For Birt 2.3 reporting Click on the table from the

Display “No Data” message when table is empty in BIRT Report

偶尔善良 提交于 2019-11-29 08:27:05
I want to hide a table and to report that "No Data" message is present if the query returns no data. In computed columns i have added the columns which counts the number of rows present(i.e.TableCheck). and i have created label just below the table with the message "No Data". In script onCreate i have added the below code. if( countOfRows == 0 ){ this.getStyle().fontStyle = "italic"; this.getStyle().fontSize = "large"; }else{ this.text = ""; } countOfRows = 0 is initialize in script. In table visibilty propery, checked the Hide Element and added the below code in expression. if (row[