birt

JOIN two (2) Datasets from different DB on BIRT Designer (v.4.4.0)

被刻印的时光 ゝ 提交于 2020-02-06 08:23:29
问题 I would like to ask about my problem that i faced these days during "designing" some reports with BIRT Designer (v.4.4.0). I tried making an UNION DATASET but that didnt work for me. I can make a SWITCH formula for Name and Surname from the workers but i have to write over 500 Names and Surnames with ID on the formel. So that technique doesnt work. The Example is like this below. I have two databases and of course tables on it. Database Name: DB_1 Table Name: Production Worker_ID Machine_ID

Birt参数配置详解

二次信任 提交于 2020-01-20 02:42:52
一.web.xml 1 <!-- 2 Default locale setting. 3 设置默认的Locale信息。 4 --> 5 <context-param> 6 <param-name>BIRT_VIEWER_LOCALE</param-name> 7 <param-value>en-US</param-value> 8 </context-param> 9 10 11 12 <!-- 13 Default timezone setting. 14 Examples: "Europe/Paris", "GMT+1". 15 Defaults to the container's timezone. 时区 16 --> 17 <context-param> 18 <param-name>BIRT_VIEWER_TIMEZONE</param-name> 19 <param-value></param-value> 20 </context-param> 21 22 <!-- 23 Report resources directory for preview. Defaults to ${birt home} 24 设置BIRT Viewer的工作目录。 25 用户可以把report design或是report document文件存放在这个目录下, 26

BIRT插件的使用

五迷三道 提交于 2020-01-20 02:42:12
BIRT 是一个优秀的报表插件,本文将涉及它的安装到简单使用的整个过程。 一,安装 1 :到 http://download.eclipse.org/birt/downloads 下载相应版本(我的 Eclipse 是 3.2 ,所以 BIRT 的版本是 2.1M5 )的 Framework 和 runtime 两个包。把 Framework 包解压,然后和其它 plugin 一样放到 Eclipse 的 plugins 和 features 目录下;把 runtime 解压到任意目录下,如 C:\birtruntime 。这里说明一点: BIRT 的 runtime 在有些时候并不需要,比如但 plugin 导出为 rcp 发布后,在其它的机器上就不需要安装 runtime 来运行报表了。 2 : BIRT 要依赖 GEF 和 EMF ,所以你的 Eclipse 平台要正确安装 GEF 和 EMF 。 3 :如果想用 pdf 格式显示报表结果,我们还要做以下两件事情:到 http://prdownloads.sourceforge.net/itext/itext-1.3.jar 下载 itext ,然后拷贝到 plugins/org.eclipse.birt.report.engine.emitter.pdf_version/lib 目录下;到 http://dev.conio

Birt支持自定义导出中文名称

孤街醉人 提交于 2020-01-19 16:32:12
BIRT 是以 Java 和 JavaEE 为基础为 Web 应用程序开发的基于 Eclipse 的开源报表系统,虽然支持文件导出功能,但不支持导出时动态自定义文件名称,尤其不支持中文。 Birt默认提供了两种导出文件时自定义名称的方法,如下: DefaultFilenameGenerator:报表文件名称.后缀名 TimestampFilenameGenerator:报表文件名称+yyyyMMdd-HHmmss.后缀名 Birt若实现自定义导出文件名称,需要实现org.eclipse.birt.report.utility.filename包下的IFilenameGenerator接口,具体操作如下: 自定义实现IFilenameGenerator 接口 public class CustomExportGenerator implements IFilenameGenerator { @Override public String getFilename( String baseName, String fileExtension, String outputType, Map options) { return baseName + "." + fileExtension; } } 从上面的代码看出,IFilenameGenerator 中的方法默认没有提供自定义文件名称

Development status of BIRT reporting Framework?

霸气de小男生 提交于 2020-01-15 07:38:09
问题 Very little has changed in a while for BIRT. Since the project seems still heavily used, it would be interesting to know if there are future plans and if so, what is entailed in those plans. Subsequently, based on the development status: Is BIRT still a safe platform to base development on or is it expected to just be conserved in the current state such that occuring bugs probably won't get fixed? 回答1: We decided to use BIRT instead of Jasper 8 years ago. We are still using 4.2.1 for

BIRT report viewer - custom error reporting

佐手、 提交于 2020-01-15 07:10:31
问题 We have several reports and several applications feeding the reports with data. We use BIRT Report Viewer 2.3.2 to display the reports. Thing is, when an application is unreachable the BIRT Report Viewer displays an error message box titled "Exception" with the exception header, the link to expand the stack trace, and two buttons, ok and cancel. For these kind of exceptions i would like a friendlier message saying something like "Application X is reloading, please wait a few minutes and try

How to slice a data cube in Birt designer?

假如想象 提交于 2020-01-14 19:09:41
问题 I created a data cube in Birt designer with the following data : Measure : turnover Dimensions : product, location and time I have now a three-dimensional OLAP data cube I want to display in a two-dimensional array. My problem here is I don't know how to assign a constant value for one dimension (for example : product = "computer" or time = "2014") 回答1: There are a couple of ways to do this. In terms of performance, the most efficient one would be to add a parameter to the main dataset of the

Convert a string (in date format) to datetime using Javascript

家住魔仙堡 提交于 2020-01-14 15:54:59
问题 In BIRT, i have a column containing a datetime stored as a string. I need to convert these string to datetime format and put the result in another column using Javascript. The string is the form of: for example: Fri 21 Feb 2014, 09:40 AM. Hence this when converted to a datetime format and exported to excel, the column should be treat as a date. Can any one of you help me to do it? Cheers, 回答1: Other answers do not take into consideration this question is in a BIRT context. Create a computed

Convert a string (in date format) to datetime using Javascript

…衆ロ難τιáo~ 提交于 2020-01-14 15:54:38
问题 In BIRT, i have a column containing a datetime stored as a string. I need to convert these string to datetime format and put the result in another column using Javascript. The string is the form of: for example: Fri 21 Feb 2014, 09:40 AM. Hence this when converted to a datetime format and exported to excel, the column should be treat as a date. Can any one of you help me to do it? Cheers, 回答1: Other answers do not take into consideration this question is in a BIRT context. Create a computed

Convert a string (in date format) to datetime using Javascript

百般思念 提交于 2020-01-14 15:54:26
问题 In BIRT, i have a column containing a datetime stored as a string. I need to convert these string to datetime format and put the result in another column using Javascript. The string is the form of: for example: Fri 21 Feb 2014, 09:40 AM. Hence this when converted to a datetime format and exported to excel, the column should be treat as a date. Can any one of you help me to do it? Cheers, 回答1: Other answers do not take into consideration this question is in a BIRT context. Create a computed