Quantcast
Viewing all 542 articles
Browse latest View live

export to ods with ',' instead of '.'

Hi,

With Birt 4.2.2
I'm french user and use this type of formatting for values : 63 992 284,08
When I export to ods The value in my spreadsheet are like 6.399228408E7 (text value : I cannot apply sum on this cells...)
When I export to excel format, there is no problems : 63992284,08

For instance I can use this last form of export and ask to user to transform .xls in .ods

But Is ther a way to have a good format in the ods export ?

thanks a lot for your help

Vincent

Generating the Report in TXT format

Hi

Colud you please help me with this reqirement.

I am trying to generate report in TXT format along with the below requirements.

1) Each column should have predefined length(Column 1 should have length 5 ,Column 2 should have 10 spaces)
2) There sould be a one lengh gap between columns.
3) The Columns with repeated values should display only once (Required for some columns,not for all columns)

I have attached the sample output.

I am tried mutiple options for getting this .

But i am not able to get all the reqirements.

how to show table's value in horizontal fashion

In birt report design I am using a table to show data by using its detail row. normally data shown is in vertical fashion
like
column1
value1
value2
value3
.
.
.


like this
but I want to show data like as

column1
value1 value2 value3 value4 value5
value6 value7 value8 . .
. . . . .

etc.


any help ???

How would I integrate BIRT with Python Django?

Has anyone been able to do this? If so, how? I've gotten it work partway using the Python module
requests
, but I'm stuck now.

Category pie chart

Hi, I need your help. I think it's easy but I can not find it.
I have a pie chart and in the category come from a xml values​​: 1, 2, 3, 4 .....
And I want to map this value to a text:
If the value is 1 then "Text 1"
If the value is 2 then "Text 2" ....
and this text I want to appear on the chart.
The tables have been "Map" to relate a value with a text, but does not work in the chart.
Attach one example

Birt Chart Rendering Problems

I am not sure if this is the right place, but if it is not, I would appreciate if someone tells me which one is the right place for my question.

I created a report with 8 charts. The seventh chart is the only one that doesn't render properly. In the preview window while I am configuring the chart it looks good, but as soon as I preview the whole report the chart’s series doesn't take the dataset values but some arbitrary values I don't know from where they come. The odd thing is that it happens in the seventh chart and not in the eighth or nay other chart in the report.

Thanks in advance for any help you can provide me

GA

Scrollable table

Hi all.

I'm trying to create an HTML report with a scrollable table in a grid in another table.

I'm trying to get the innermost table to be scrollable so it doesn't grow and mess up the rest of the report.

I've seen kclark's devshare here but it doesn't seem to be working in 4.2 for some reason. The scroll bars appear, but the table just grows to show all of the records. The sample in the devshare also grows and does the same thing mine is doing. I don't think this is the intended result?

Any ideas what I'm doing wrong?

Thanks.

Draw a bar chart as shown in the attached image

Hi, I just want to draw a bar chart which looks like the one shown in the attached image, any advice?

Thanks in advance!

Need to see parameter dialogue after hyperlink

I have a report that calls other reports by hyperlink. They run fine and the parameters passed from the parent do condition the children.

When I call a report by hyperlink that has additional parameters, the child report opens with the default parameters instead of displaying the parameter dialogue.

I can't figure out how to set a book mark or other condition in a child report so it will open with the parameter dialogue.

Is it possible?

I am using Birt 3.7.1 and MS SQL 2008 R2

Thanks,

Dave

Flow report content across multiple page columns

I'm working on a simple report that has multiple groupings and such. The data shown for each detail section is pretty small, so I'm looking for a way to make better use of a page. What I'd like to do is flow the data from column to column across the page. The details section fits very nicely in about 3in. of space, so taking a standard 8.5x11 sheet of paper, i can fit 2 columns in portrait or 3 columns landscape.
Group A Header   |  Group B Header
Group B Header   |  Details
Details          |  Group B Header
Group B Header   |  Details
Details          |  ....
<goto nxt col>   |

----page break

Group A Header
...and so on


Is there a way to layout the report in this fashion?

Deployed report shows different result than in preview mode

I have a report that works perfectly in preview mode, when I deploy it in web application I get a different result (missing data)

All text data is not loaded although in debugging mode I can see the engine getting data from the database.
The second problem, I have two sets of images to display depending on a two datasets. The first set shows only one image although the dataset returns 3 images. I not sure yet the that second set is problematic.

Any idea why I'm getting this discrepancy.

Thanks,
Ramzi

Cascading Parameter

Hi,

i want to create a cascading parameter where i only choose the first parameter(query parameter) and all the others where automatically set out of this selection.

the table where the entries where stored looks like:

version, name, start_date, end_date

and i only want to choose the version parameter and all other parameters eg. for start_date where also set out of this selection.

-> is this possible via a cascading parameter? or how could it work?

thanks in advance...

Need Help. Cant get genReport to run.

Hello,
I am trying to automate report Generation. But i am stuck with geting genReport generate my report.


Windows 2008 Server
- I extracted runtime to c:\BIRT\runtime
- Set Eviroment Variable BIRT_HOME to c:\BIRT\runtime
- copied the whole plugin directory from Birt to c:\BIRT\runtime\ReportEngine\plugins

Next Step is to run genReport:

C:\BIRT\runtime\ReportEngine>.\genReport.bat -m runrender -f PDF -o test.pdf -F .\MyReport_0.1.rptdesign

This is the Error i get:

C:\BIRT\runtime\ReportEngine>ECHO off
24.11.2011 14:10:21 org.eclipse.birt.report.engine.api.ReportRunner readConfigurationFile
SCHWERWIEGEND: file: C:\BIRT\runtime\ReportEngine not exists!
24.11.2011 14:10:21 org.eclipse.birt.report.engine.api.ReportRunner execute
SCHWERWIEGEND: exception in parsing the paramters
java.lang.NullPointerException
at org.eclipse.birt.report.engine.api.ReportRunner.execute(ReportRunner.java:145)
at org.eclipse.birt.report.engine.api.ReportRunner.main(ReportRunner.java:122)

Any thoughts on this?
Cheers Alex

Birt Viewer export PDF in server Debian

Hi all,

I have a problem with the value of bar chart when I make a export pdf in the birt viewer in my prod server, while in dev server it is displayed correctly.

In my server dev I have a Ubuntu :

Viewer Version : 4.2.1

Engine Version: 4.2.1

JRE version: 1.7.0_17

In server prod a Debian :

Viewer Version : 4.2.1

Engine Version: 4.2.1

JRE version: 1.6.0_18

I think it comes from the Java version, but in Debian by default and the stable version of java is 6.

how can I solve this problem ?

Thank you in advance.

ps: see also my screenshot

prevent sql injection in dataset

Hi,

Used some days on this problem. searched the web without finding any clear answer. i have a question regarding preventing sql injection when running birt reports.

I build the queryText in 'beforeOpen'-event.

this is an example from my beforeOpen:
this.queryText="select * from MyTable where MyTable.Age=" + reportContext.getParameterValue('ageparam') + " and MyTable.EmployeeName = '" + reportContext.getParameterValue('name_param') + "'";


But i guess this leaves the sql open for sql injection. In Java, one can use prepared statements and by that prevent sql injection. But how to achieve this in Birt when using script in beforeopen?

Solutions ?
- replace all "evil"-characters (as ' and --) before adding paramter-values to the queryText ? not fool-proof i guess?
- is it possible to run preparedstatement with java from the before-open event on dataset ?
- is it possible to run something equal to java-preparedsatement with javascript from the before open event on dataset ?
- some other solution ?

computed column issue

I am creating a computed column
if (BirtComp.equalTo(row["open_days"], "0")) {"<1"} else
if (BirtComp.equalTo(row["open_days"], "1")) {"1"} else
if (BirtComp.equalTo(row["open_days"], "2")) {"2"} else
if (BirtComp.equalTo(row["open_days"], "3")) {"3"} else
if (BirtComp.equalTo(row["open_days"], "4")) {"4"} else
if (BirtComp.equalTo(row["open_days"], "5")) {"5"} else
if (BirtComp.between(row["open_days"], "6", "14")) {"6-14"} else
if (BirtComp.between(row["open_days"], "15", "29")) {"15-29"} else
if (BirtComp.between(row["open_days"], "30", "44")) {"30-44"} else
if (BirtComp.greaterOrEqual(row["open_days"],"45")) {">45"}
else {"ERROR"}

If I have a value in the open day equal to 11 it will report error however when I check Syntax there is no problem. Any ideas? My other ranges 15-29 and 30-44 work fine.

I am using Birt 2.6.1

Dan

java script date issue

Hi, ihave a doubt a please clarify me.

i want to go back to four weeks back dates from todays date in my javascript code,

i can directly go back by subtracting 28 days,but every month can have 30 or 31 or 28 or 29 days.

so, I can't get correct exact date by directly subtract days from the date.

how can i go back to the particular date. And i want to know how many days are in the last month.

is there any functions to acheive this in javascript.

please give your suggestion.

Localization of BIRT report using JAR files

I want to localize report generated from BIRT using .jar files instead of using .properties files. My jar file will access a DB (SQL server) which will return it the key value pairs for localisation. Can anybody help me with this and tell me how can i achieve this using a jar file. What should my jar file contain and how will my report use it?

Bar Chart

Hello BIRT community,

I am using BIRT 2.6.2.
For example: I have dataset with 2 colums. one are names the second are values.
And I wanted to created a bar chart which looks like:

name 1 -----------
name 2 -----------------
name 3 -----
       0   10    20    30    40    50


I have bound the row[name] to the x-series and the row[value] to the y-series. Do I have a logic error because I onyl get the half of the dataset and sorted in very strange way?

For any hints and suggestions thanks in advance.

Can not load the report query: 205. Errors occurred when generating the report document for the report element with ID 205. (Element ID:205)

I am using BIRT 2.6.2.
I have designed reports in eclipse and deployed in my local tomcat.It is running successfully.
But when I am trying to deploy it in linux environment..
It is giving ...
Can not load the report query: 205. Errors occurred when generating the report document for the report element with ID 205. (Element ID:205)

I have also copied mysql connector jar file in birt/WEB-INF/lib folder
I think database connection is not establishing..What is the problem?

Please help me asap.
Viewing all 542 articles
Browse latest View live