birt

Eclipse Birt - Set style cell table dynamically with Event Handler

流过昼夜 提交于 2020-01-06 14:58:13
问题 I have Birt table in a report and i want to create a handler class that change the style color of the cell in the table dynamically if the cell contains the max of the column. I try this for first step and i hooked the class to the row of the table report. public class RowMinMax implements IRowEventHandler { public void onCreate(IRowInstance rowInstance, IReportContext reportContext) { double max=0; IRowData rowData = rowInstance.getRowData(); double cellValue = (double) rowData

BIRT reports - add parameter through script

吃可爱长大的小学妹 提交于 2020-01-03 02:47:24
问题 I have a BIRT report that uses a query like below. select Dealer, Name from customerA where id = ? union all select Code as Dealer, last_name as Name from customerB where id = ? union all select Num as Dealer, owner as Name from customerC where id = ? I have a input text box in the report itself and a refresh button which reload the report. also my report have parameter called 'CUST_ID' which i bound in the dataset as param_1,param_2 and param_3 to replace with '?' mark while executing. if i

Spring boot Birt Report with Angular 2 client Generates Corrupt PDF File

谁都会走 提交于 2020-01-01 19:11:51
问题 I am trying to configure birt report in a spring boot applications, the client is an angular 2 application, here is where I run the report: @PostConstruct public void startUp() { if(inputDir == null) throw new RuntimeException("Cannot start application since birt report input directory was not specified."); try { EngineConfig engineConfig = new EngineConfig(); engineConfig.getAppContext().put("spring", this.context); RegistryProviderFactory.releaseDefault(); Platform.startup(engineConfig);

How do I combine multiple BIRT reports

瘦欲@ 提交于 2020-01-01 06:51:42
问题 We currently have a whole suite of report designs that cover various parts of our app, and these reports are generated on demand by our users. I want to be able to bundle up several of these reports into a single report to return to the user. I initially hacked up a custom report builder that generated report design files using segments inside a report library file, and then ran that generated design, but this was unwieldy and a pain to manage as I had to duplicate the individual reports

大数据交叉报表解决案例(方案)

旧巷老猫 提交于 2019-12-29 23:32:32
【推荐】2019 Java 开发者跳槽指南.pdf(吐血整理) >>> 软硬件环境 OS:win7 Cpu:8 核 集算报表:1120 安装版 Jvm:1G 数据库:oracle11g 客户无法解决的问题: 有一个交叉汇总报表,其实格式很简单,行列各一个统计维度。但后台业务表的数据有 175 万条,且还要与其他表(大概在 7w 条左右)做 join,如果由 sql 来处理,可以想象到会慢到什么程度,关键受各种条件影响,能否查出数据都是问题。 注:ACCORECEIVE 表 175w 条数据 目前,测试 birt 需 5 分钟,借助各种中间表与视图。报表友商无法出表。 要求:能做出该报表在 web 展现,且重要的是速度要快,另外,数据(目前大概是 5 年数据)是实时增加的。 客户报表格式及目前所用 sql: 报表格式: Sql: select LOCATIONS.loupan loupan, LOCATIONS.LPORDERNUM, nvl(ACCORECEIVE.RECEIVABLEAMOUNT, 0) yingshou, chargeproct.Description CHARPNAME, chargeproct.ordernum chordernum from ACCORECEIVE,V\_LOCATION\_LP\_LG\_DY LOCATIONS,chargeproct

Birt - How to run report engine on the console?

白昼怎懂夜的黑 提交于 2019-12-25 05:16:31
问题 I've been reading that I can use genReport.sh (included somewhere with Birt) to programmatically generate reports. (I ultimately want to integrate Birt with Django in a simplistic way.) I installed birt-runtime-3_7_2.zip following these simple directions. But when I look through my webapps directory I don't see genReport.sh. Do I need to bring over more files from the download to get access to genReport? 来源: https://stackoverflow.com/questions/9684674/birt-how-to-run-report-engine-on-the

Birt with restful APIs

懵懂的女人 提交于 2019-12-24 22:50:37
问题 I am developing BIRT reports for a PHP project. I can easily develop reports by connecting directly to the database using JDBC Datasource. However certain data come from restful api and I am unable to create a datasource from those api endpoints. Birt has option to create datasource from web services, however this seems to only accept SOAP APIs. I was wondering if someone can show me how to create birt datasources from REST APIs. I read through all the search results provided by google. Some

SpagoBI multi value parameter

自闭症网瘾萝莉.ら 提交于 2019-12-24 17:09:23
问题 I'm trying to create a multi-value parameter in SpagoBI. Here is my data set query whose last line appears to be causing an issue. select C."CUSTOMERNAME", C."CITY", D."YEAR", P."NAME" from "CUSTOMER" C, "DAY" D, "PRODUCT" P, "TRANSACTIONS" T where C."CUSTOMERID" = T."CUSTOMERID" and D."DAYID" = T."DAYID" and P."PRODUCTID" = T."PRODUCTID" and _CITY_ I created before open script in my dataset which looks like this: this.queryText = this.queryText.replace(_CITY_, " CUSTOMER.CITY in ( "+params[

Updating Data Set query after parameter input in BIRT

孤者浪人 提交于 2019-12-24 05:12:41
问题 How can I change or update a data set's query after a parameter has been passed in BIRT report designing? Detailing: I've got a query that looks like this: WHERE ? That parameter marker can hold different values, after user input parameter, it would look like this e.g.: WHERE column_name = 1 or WHERE column_name = 2 or even WHERE column_name IN (1,2) I created a Report Parameter(RP) for that Data Set Parameter(DSP) and after trying for hours, I couldn't get to change it. I tried: Creating all

Updating Data Set query after parameter input in BIRT

爱⌒轻易说出口 提交于 2019-12-24 05:12:10
问题 How can I change or update a data set's query after a parameter has been passed in BIRT report designing? Detailing: I've got a query that looks like this: WHERE ? That parameter marker can hold different values, after user input parameter, it would look like this e.g.: WHERE column_name = 1 or WHERE column_name = 2 or even WHERE column_name IN (1,2) I created a Report Parameter(RP) for that Data Set Parameter(DSP) and after trying for hours, I couldn't get to change it. I tried: Creating all