Quantcast
Channel: BIRT Exchange Forum Feed
Viewing all 542 articles
Browse latest View live

Calculating aggregate on data cube totals

$
0
0
Hey BIRT folks,

I have a report I'm working on, where I have a crosstab displaying 3 columns per column grouping. In the dataset feeding the data cube, I am dividing the first column by the second one, and outputting this in the 3rd column of the crosstab:



At the bottom of the crosstab, I have the totals of the first and second columns (Target and Actual). What I can't figure out is how to get that first column total divided by the second column, and to show it in the 3rd column in the summary row. I've tried to do an aggregation in that cell, but I only am able to access a single expression in the table (I can't write a custom expression to divide one column by the other one).

Thanks for the help!

HTML Output - modify the table width

$
0
0
I have one table in the report with the fixed width set to 250px. The HTML output has a main table with a width of 8 inches. How can I change the main table width to be the same size as the table in the report?

Note: The HTML page has a white space area to the right of the inner table.

Thanks for your help.

Multi column report

$
0
0
I'm running the latest version of BIRT (3.7.1). I've been trying to set up a multi-column report, but I cannot figure out how to do it. I've set the columns property on my master page to 2, but when viewing the report, I only see only column. I see that this version of BIRT is supposed to support columns. What do I need to do?

how to use com.itextpdf.text.image to generate pdf report

$
0
0
I have some dynamic JFreeChart charts which need to be inserted into pdf report
I used iText before. the code like the following:

private Image genJfreechartImage(PdfTemplate tp, JFreeChart chart, float width, float height)throws BadElementException, DocumentException{
Graphics2D g2d = tp.createGraphics(width / 40, height / 40, true, 0);
Rectangle2D r2d = new Rectangle2D.Double(0, 0, width, height);
AffineTransform affineTransform2 = AffineTransform.getTranslateInstance(0, 0);
affineTransform2.scale(0.025, 0.025);
g2d.transform(affineTransform2);
g2d.transform(AffineTransform.getTranslateInstance(0, 0));
chart.draw(g2d, r2d, null);
com.itextpdf.text.image img = Image.getInstance(tp);
g2d.dispose();
g2d = null;
float pageWidth = (float) (PageSize.A4.getWidth() * 0.9);
float percentage = (pageWidth / img.getWidth()) * 100;
img.scalePercent(percentage, percentage);
return img;
}

in this method, I got the vector image in pdf which will not be distorted after zoom in, the pdf file size is small and the generating report time is quick

Now I use birt-4.2, I use dynamic image which takes byte array as source, so my code is:

public byte[] getByteArray(List<ChartData> chartDataList, int width, int height, boolean isDualAxis) {
byte[] png=null;
BufferedImage objBufferedImage = new BufferedImage(480, 320, BufferedImage.TYPE_USHORT_555_RGB);
Graphics2D g2d = (Graphics2D) objBufferedImage.getGraphics();
Rectangle2D r2d = new Rectangle2D.Double(0, 0, 600, 400);
AffineTransform affineTransform2 = AffineTransform.getTranslateInstance(0, 0);
affineTransform2.scale(0.8, 0.8);
g2d.transform(affineTransform2);
g2d.transform(AffineTransform.getTranslateInstance(0, 0));
jfreechart.draw(g2d, r2d, null);
g2d.dispose();
g2d = null;
ByteArrayOutputStream bas = new ByteArrayOutputStream();
try {
ImageIO.write(objBufferedImage, "png", bas);
png=bas.toByteArray();
bas.close();
} catch (IOException e) {
e.printStackTrace();
}
return png;
}

in this method, the image in pdf is distorted after zoom in, the file size is bigger and the generating time is long

Is there a way to take com.itextpdf.text.image as the source for dynamic image in birt? or is there any other solution? If I want to edit the birt source code, can you give me some guide?

thanks very much.

Error running the Report in Deployment with Connection Profile

$
0
0
Hi All,

Greetings of the day,

We are facing the following error(See the attached file) while deploying the report in our application.
Earlier we used the normal jdbc connection for creating the report and it worked fine from eclipse as well as from our application. Since we have several report we change the jdbc connection to Connection Profile. After changing the data source settings to connection profile it is not showing data while running from the application. how ever it is running properly from eclipse.

We are using Window 64 bit with Birt 4.2 with Cordys(BPM Tool) application.

Thanks in advance.

java.lang.OutOfMemoryError: PermGen space in struts2 to birt integration

$
0
0
Hi,

We have Struts2 integrated with Birt 3.2.21 in our application. After execution of couple of reports i am facing OutOfMemoryError PermGen space issue. On the contrary if the application is accessed without using the reports the application works fine for hours.

java.lang.OutOfMemoryError: PermGen space
Exception in thread "ajp-8013-1" java.lang.NullPointerException
at java.util.concurrent.ConcurrentLinkedQueue.offer(ConcurrentLinkedQueu
e.java:190)
at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler$1.offer(Ajp
AprProtocol.java:354)
Apr 18, 2013 3:59:54 PM org.apache.catalina.startup.HostConfig undeployApps
WARNING: Error while removing context []
java.lang.OutOfMemoryError: PermGen space
at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler$1.offer(Ajp
AprProtocol.java:371)
at org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.process(Ajp
AprProtocol.java:433)
at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:17
03)Apr 18, 2013 3:59:59 PM org.apache.catalina.startup.HostConfig undeployApps
WARNING: Error while removing context [/manager]
java.lang.OutOfMemoryError: PermGen space


Please help me if anyone has already encountered it or have any knowledge of how to resolve it.

Regards,
Raju

Java interaction with checkbox parameter

$
0
0
Is it possible with Birt reports to link a checkbox parameter to a java class that is triggered by checking or unchecking the box? I'm looking to have the ability to set some background properties based on this action before I submit the parameters to run the report.

Any examples or online instruction you can point me to?

Thanks for the help!

Boyd

How to avoid duplicate requests fro Birt reports

$
0
0
Please check this link : How to avoid duplicate requests fro Birt reports

My question is at the end. Sorry I am asking for too much but I am really stuck guys.

Its really urgent guys. Please help me. I am stuck for some 2-4 days. I tried to search some solution but its a bug in BIRT and I don't think that it is resolved yet.

how to handle this kind of report

$
0
0
Hi, i have a doubt in report...i.e in my report there is a two kind of chart
i)one is hourly based report with bar chart or line chart
ii) second is day total sale report with meter chart

actually my task is i have to create a report with current date report for period of one hour its has been calculated a sale value it has been show in graph with the updation value without any parameter likewise for each hour .........how to calculate a each hour and update a value in chart....and then in meter chart can i change a needle a with script.....if its possible means

i attached a txt here i have seen this report in this website...its suitable for my question...just analyses and give answer for me as soon as possible





thanks in advance.....

Charts with nested tables

Adding new drop down in birt report and changing query parameter based on value from dropdown

$
0
0
I want to add new drop down in birt report which contain hard coded(numeric) values and user can select any value which decide number of records to display in query

And also how to access report parameter in html script?

Report Engine is very slow

$
0
0
Hi,

We are using Birt Report Engine in our Java application to print reports to pdf.
But Task.run is very slow. it takes 30 seconds to build a report of 3 pages for the first time.for the second time it takes only 2 sec to generate the report.

Is there any way to minimise the report generation time when we print it for the first time?

Please let me know if there is any way to optimise the report engine.

I have attached birt engine.

We have used scripted data source and BIRT Designer Version 3.7.2.v20120213.

Custom Report is getting saved twice..

$
0
0
I have a strange thing happening .. when user selects filter while viewing a report and enter a name to save it as a custom report , a custom report get created. But when user clicks on print icon and selects pdf as option and says ok to print another custom report is getting created.

Any clue?

CrossTab cell formatting?

$
0
0
Hi,

I have report with several graphs and one crosstab. The layout of the crosstab is as follows

ColumnName[colIndex]

DataFrom | DataType[rowIndex] || Data

It should look something like

Monday Tuesday ......

Paris Furniture 1200 2000
Candies 120 220

ROI 5.5% 7.0%


London Furniture 2200 2700
Candies 220 320

ROI 6.5% 8.0%

etc

The data is produced by a database query and all computation is done (in Java) before pushing the data to the
report.

A line of data to the report looks like:

{dataFrom:sales, dataType:candies, columnName:Monday, columnIndex:1, data:1200,.....}

Everything works okay, for the exception of the rows (and a specific columns) containing percentages. All data, including percentage is pushed in the double datatype from Java, i.e. 0.055 for 5.5%. The report design data type is decimal.

The requirement of the rows and columns containing percentages is that its shows the %-sign and if value is positive the color of the cell/number should be green, if negative then red.

I have managed to get the colors on the correct row and column cells containing the percentages. However I am unable to get the % sign into those same cells.

In the crosstab script I have
function onCreateCell( cellInst, reportContext )
{
if( cellInst.getDataValue("columnName")=="ComparedToPreviousMonth" 	|| 
cellInst.getDataValue("dataType")=="ROI")
{	
	

// cellInst.getStyle().setNumberFormat("##.##%");
			
if(cellInst.getDataValue("data_TypeGroup/dataType_columns/columnName") < 0) 
cellInst.getStyle().setColor("RGB(253,120,120)");
	
if(cellInst.getDataValue("data_TypeGroup/dataType_columns/columnName") > 0) 
cellInst.getStyle().setColor("RGB(0,139,8)");


}

}


As I said the coloring works correctly for the given rows and columns. But if I remove the comment on the line with setNumberFormat, then every cell in the whole crosstab gets formatted with % and extra zeros.

It appears that setNumberFormat somehow affects every cell while the coloring works as expected, for the specified row and column cells.

How should I solve this problem?

Show hebrew language text in birt chart

$
0
0
Hello,

My requirement is to display hebrew text in birt report.

In my project, i have unicode for hebrew text is stored in database.So at time of displaying that unicode to birt report it is not converted to character as like HTMl(Automatically Conversion).

So in my birt report unicede is displaying like ؈؟ and so on instead of real character.

So, please help me.

Show hebrew language text in birt chart

$
0
0
Hello,

My requirement is to display hebrew text in birt report.

In my project, i have unicode for hebrew language text is stored in database as unicode for hebrew characters.So at time of displaying that unicode to birt report it is not converted to character as like HTMl(Automatically Conversion).

So in my birt report unicode is displaying like ؈؟ and so on instead of real character.

So, please help me.

Migrate Oracle Reports to Birt Report-Which is Best Solution

$
0
0
I have a requirement to convert thousands of Oracle reports to Birt Reports.In birt i will use PostgreSQL as database.Which is the best way to convert oracle reports to birt reports.One option is manually check oracle report's functions groups etc. and replicate same thing in birt report.It will be a mammoth task.Is any option to simplify this task?

Actuate Error

$
0
0
When i run the start_srvr.sh command to start actuate i am receiving below error message in log file (encycsrvr6.1434.2013APR25_04_29_17_PST.1.log). The actuate version is 6.
Can anyone please help on this.? Let me know if you need to see any log/files. Thnx

**********************************
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:35
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:36
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:37
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:37
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:37
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:37
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:37
Caught exception fromAcOpSrvrMgr::AssignAsyncJob
opSrvrID 3544342178-700002-1441
jobID 0
Error Code: 4021
****0000000017*opSrvrMgr.cpp*03251*08000*2013APR25*04:59:37
Caught exception fromAcOpSrvrMgr::AssignAsyncJob

Two questions about required parameters

$
0
0
Hi all,

I have two questions about required parameters.

1. Is it possible to have "either/or" required parameters? Eg. the user needs to specify parameterFoo OR parameterBar for the report to run.

2. When using cascaded parameters, is it possible to keep the top level parameter optional, but make the second level parameter required? So if your parameters are paraFoo -> paraBar, you don't have to specify a paraFoo, but if you do, paraBar is required.

Thanks so much!

Error with BirtDateTime

$
0
0
When using the BirtDateTime in our reports we sometimes get the following error.

Data (id = 363):
+ A BIRT exception occurred. See next exception for more information.
Error evaluating Javascript expression. Script engine error: ReferenceError: "BirtDateTime" is not defined.
Script source: null, line: 0, text:
BirtDateTime.now()



Here is what this looks like in the report designer.
<data id="363">
<property name="marginLeft">2pt</property>
<structure name="dateTimeFormat">
<property name="category">Long Date</property>
<property name="pattern">Long Date</property>
</structure>
<property name="display">inline</property>
<list-property name="boundDataColumns">
<structure>
<property name="name">Column Binding</property>
<text-property name="displayName">Date</text-property>
<expression name="expression" type="javascript">BirtDateTime.now()</expression>
<property name="dataType">date</property>
</structure>
</list-property>
<property name="resultSetColumn">Column Binding</property>
</data>



Any ideas as to why we are getting this error sometimes with the date? When we get this error all the other fields populate correctly except the date is left blank.

Thanks for any help!
Viewing all 542 articles
Browse latest View live