birt

Hiding grids/tables in BIRT whith no results from datasource

不问归期 提交于 2019-12-06 09:37:52
I am having trouble altering a report in birt to meet my teams specifications. The problem is this: I am generating a report from a jdbc datasource. I am selecting items from the DB such that there is either one row or none. If there is a row returned, I show data reflecting the results. If there is no row returned though, I should hide the entire grid that the data should have been shown in and show a simple message, "no data can be found." I have tried different actions like adding a count to the query and the computed count from the plugin, but if no results are given then there is no count

How best to maintain an Eclipse RCP plugin target?

爱⌒轻易说出口 提交于 2019-12-06 08:02:57
I have a plugin for an RCP app that uses BIRT. I have a target for building my app which contains only the plugins/features that are required. I recently updated the BIRT plugin versions in my IDE, which created an incompatibility in the design files with previous versions of BIRT. I have the old version of BIRT in my target and need to update to the newer plugins. In the past I have manually updated plugin jars in the target, but BIRT is a complicated platform with dependencies out the wazoo. Is there any utility or way of organizing my target differently that will make this easier to control

Drill Through not working in SpagoBI server in birt report

好久不见. 提交于 2019-12-05 18:14:57
This is the setting of the hyperlink in birt report The script used to compute the param is as follows: if (params["idContratto"].match(row["contract_number"].toString()) == null){ if (params["idContratto"].value == "abc"){ row["contract_number"].toString(); } else{ params["idContratto"].value + "," + row["contract_number"].toString(); } } else{ if (params["idContratto"].length == row["contract_number"].length){ ""; } else{ temp = params["idContratto"]; temp = temp.replace(row["contract_number"].toString(), ""); if (params["idContratto"].indexOf(row["contract_number"].toString()) == 0){ temp =

Why doesn't Websphere like BIRT?

℡╲_俬逩灬. 提交于 2019-12-05 10:32:27
I am trying to start a deployment of a project to Websphere and I get the following error trail. (Shortened) ERROR org.springframework.web.context.ContextLoader - Context initialization failed org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'birtView' defined in ServletContext resource [/WEB-INF/applicationContext.xml]: Cannot resolve reference to bean 'birtEngine' while setting bean property 'birtEngine'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'birtEngine': FactoryBean threw exception on

Why is my Crosstab being cut off in Excel?

送分小仙女□ 提交于 2019-12-04 22:20:38
I'm attempting to create an excel spreadsheet using BIRT. The spreadsheet is a crosstab mapping two objects together. The number of rows and columns are dynamic based on values in a MySQL database. Currently I have a working implementation of the report for PDF output. Now, I am trying to create a second version of the report for Excel. I have copied the report design and begun adjusting it to work with Excel. Everything looks good, but only the first 3 columns are displayed after the header. All rows appear correctly. I have tried the following: I tried setting Overflow to Visible on every

辍学北漂,从月薪2k服务员到2W报表工程师,我的数据追梦故事

半腔热情 提交于 2019-12-04 20:15:21
本文为真实故事,绝无虚构 每个数据人在与数为伴,全力奔跑的日子里,总会有一些难忘的体验。 那些加班最深的夜,那些磨练后的成长,那些因数据带来的新的见遇,都让我们的人生变得丰富多彩。 今天要分享的故事来自于一个普通的帆软用户,作者希望用他的追梦故事来鼓励那些和他一样全力奔跑在数据追梦路上的人。 我叫星痕,从事数据行业4年。 关于我的故事要从2013年说起…… 辍学北漂 2013年3月中旬,霜雪已逝,春风渐来,枯燥乏味的高中生活已经持续了一年半,每天重复枯燥的学习生活,让人十分厌倦,我不想把青春浪费在高考上,于是,我做出了绝大部分人不能理解的决定—— 辍学! 2013年3月21日凌晨5点多,我拖着行李箱,背着一个双肩包,兜里揣着出门前我爸给的1000块钱,站在了北京西站的出站口。 看着凌晨5点还依旧车来车往,霓虹灯闪烁的北京,我没有丝毫的怯意,心里装着一腔热血和对未来的憧憬。和每个刚开始北漂的年轻人一样,我暗暗告诉我自己:我来是要干大事的,我要实现我的梦想,我要成就我的价值。 然而,理想总是丰满的,但是现实总是残酷的。之后的一年多的时间里,我前前后后换了三份工作,做过裁缝,当过饭店的服务员,辛辛苦苦攒的4000块钱工资,还因为店里倒闭,就只剩下一张欠条,钱最后也没要得回来。 找到人生方向 就这样颠簸一年后,我开始陷入迷茫,质疑自己:我到底想要什么样的生活?我的未来,我的出路在哪

How do you set and pass a parameter to a BIRT report created by the BIRT Report Designer through the BIRT API?

江枫思渺然 提交于 2019-12-04 19:34:16
问题 I've created a simple report that takes a single parameter. This parameter is used in the query and executes fine when directly executed in the report designer. By the way I'm not using javascript or any scripting for this report. I've seen some people trying to pass parameters using scripts and/or javascripts for answers here, however this is not what I'm doing. I pass all my parameters in through java. Continuing, in this report I'm listing active/inactive items. I pass in an 'N' for

accessing parameters when writing a scripted BIRT data source in java

六月ゝ 毕业季﹏ 提交于 2019-12-04 18:18:20
I am using BIRT reporting with a scripted POJO data source and am having trouble accessing report parameters. I am scripting everything in Java, rather than javascript. The code is below: public class StockDataSetHandler extends ScriptedDataSetEventAdapter { ... @Override public void open(IDataSetInstance dataSet) { count = 0; StockDaoMock mockStockDao = new StockDaoMock(); //The code below works in javascript. How can I do the equivalent //in Java? Where do I get params from? String paramValue = params["myparameter"]; stockData = mockStockDao.getStockValues(paramValue); } } BIRT's

How can I import JSON data from a REST API into BIRT?

早过忘川 提交于 2019-12-04 17:03:58
问题 I want to use BIRT to generate reports against data that comes from a JSON based REST API. How can I import this data? 回答1: The process for doing this is described at http://developer.actuate.com/community/forum/?app=blog&blogid=45&showentry=471, but it turns out that there are a few important steps missing. I'll fill in a few blanks here. The original instructions describe creating a Scripted Data Source, with an "open" script that makes use of the com.actuate.json.JSONParser class. First,

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

时间秒杀一切 提交于 2019-12-04 15:37:31
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); IReportEngineFactory reportEngineFactory = (IReportEngineFactory) Platform.createFactoryObject