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

onCreate() event on Master page

$
0
0
So I have a grid element in my report that references a function coming from a *.js file. This works just fine. But on the Master Page I also need to manipulate the logo which I intend to do on the onCreate event. However, when I add code to this event for the logo, my table element cannot access the function in the *.js file. I've also tried moving the function from the .js file to the initialize event of the report. Still no luck.

Can somebody please help me with this issue?

average progess line

$
0
0
hi,

i want to create a average progress line into my linechart (planned tc/days)

how is it possible to create such a line?

thanks


ps:
attached you find my sample chart

How to access report parameter default values from a DataSetWizardPage class?

$
0
0
I'm trying to read and write the default values of report parameters that are linked to data set parameters from within a DataSetWizardPage implementation. I want to do this because I've placed a copy of the default values for the data set parameters directly in the query, and I want to keep that copy in sync with the default values in the report parameters.

I put the copy of the default values in the query in order to make those default values available when getting the data set metadata, which normally simply replaces all the parameters with a single, fixed value, which doesn't work for the query I'm trying to implement.

Any suggestions would be gratefully appreciated.

(Also asked on the Eclipse.org BIRT forum, here: http://www.eclipse.org/forums/index.php/t/477288/ )

Performance issue with XML data source as input stream during report generation

$
0
0
Hi,

i am facing performance issue with BIRT report generation. i have given input as InputStream object and this stream is referred to XML content which is nested in DB as CLOB object.

For report generation, it is taking around 5 minutes of time to process where i have 5000 records information in XML content. However i may need to process 50k records of XML content which will go beyond the accepted time.

Can some one tell me how to achieve it. Is there any alternative way to provide input data smoothly without causing any performance implications.

Calling stored procedure using SQL Select Query dataset issue

$
0
0
In Birt 2.3 design, I am calling stored procedure using dataset of type 'SQL Select Query'. In am using query text like "exec myProc ?,?,?" (assuming myProc has three params). This works fine.

Issue is: I am trying to migrate this design to Birt4.2.2. When I try to preview dataset result using Birt 4.2.2 Eclipse Report Design it is giving error pasted below...

Doesn't 4.2.2 support procedure call using the way I am using in 2.3? Just FYI, I am trying to avoid changing type of data set to stored procedure due to two reasons (1) There are many design files to migrate and I am looking for minimal changes (2) My db procedures return multiple result sets but I always want last or one before last so for Stored Procedure Data set type I have to mention required sequence number of result set which may turn difficult to maintain in future.

Appreciate help and thanks in advance!

org.eclipse.birt.report.engine.api.EngineException: Error happened while running the report.
	at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.doRun(DatasetPreviewTask.java:299)
	at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.runDataset(DatasetPreviewTask.java:261)
	at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.execute(DatasetPreviewTask.java:72)
	at org.eclipse.birt.report.designer.data.ui.dataset.DataSetPreviewer.preview(DataSetPreviewer.java:68)
	at org.eclipse.birt.report.designer.data.ui.dataset.ResultSetPreviewPage$5.run(ResultSetPreviewPage.java:365)
	at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:121)
Caused by: org.eclipse.birt.data.engine.odaconsumer.OdaDataException: Cannot get the result set metadata.
    org.eclipse.birt.report.data.oda.jdbc.JDBCException: SQL statement does not return a ResultSet object.
SQL error #1:Execute cursor 'jconnect_implicit_124' is declared on a procedure which contains a non-SELECT or a SELECT with a COMPUTE clause. For the declaration of this cursor to be legal it should have a single SELECT statement without a COMPUTE clause.

 ;
    com.sybase.jdbc3.jdbc.SybSQLException: Execute cursor 'jconnect_implicit_124' is declared on a procedure which contains a non-SELECT or a SELECT with a COMPUTE clause. For the declaration of this cursor to be legal it should have a single SELECT statement without a COMPUTE clause.

	at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.newException(ExceptionHandler.java:52)
	at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.throwException(ExceptionHandler.java:108)
	at org.eclipse.birt.data.engine.odaconsumer.ExceptionHandler.throwException(ExceptionHandler.java:84)
	at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.getRuntimeMetaData(PreparedStatement.java:414)
	at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.getProjectedColumns(PreparedStatement.java:377)
	at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.doGetMetaData(PreparedStatement.java:347)
	at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.execute(PreparedStatement.java:563)
	at org.eclipse.birt.data.engine.executor.DataSourceQuery.execute(DataSourceQuery.java:957)
	at org.eclipse.birt.data.engine.impl.PreparedOdaDSQuery$OdaDSQueryExecutor.executeOdiQuery(PreparedOdaDSQuery.java:445)
	at org.eclipse.birt.data.engine.impl.QueryExecutor.execute(QueryExecutor.java:1208)
	at org.eclipse.birt.data.engine.impl.ServiceForQueryResults.executeQuery(ServiceForQueryResults.java:232)
	at org.eclipse.birt.data.engine.impl.QueryResults.getResultIterator(QueryResults.java:178)
	at org.eclipse.birt.data.engine.impl.QueryResults.getResultMetaData(QueryResults.java:132)
	at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.extractQuery(DatasetPreviewTask.java:333)
	at org.eclipse.birt.report.engine.api.impl.DatasetPreviewTask.doRun(DatasetPreviewTask.java:290)
	... 5 more
Caused by: org.eclipse.birt.report.data.oda.jdbc.JDBCException: SQL statement does not return a ResultSet object.
SQL error #1:Execute cursor 'jconnect_implicit_124' is declared on a procedure which contains a non-SELECT or a SELECT with a COMPUTE clause. For the declaration of this cursor to be legal it should have a single SELECT statement without a COMPUTE clause.

 ;
    com.sybase.jdbc3.jdbc.SybSQLException: Execute cursor 'jconnect_implicit_124' is declared on a procedure which contains a non-SELECT or a SELECT with a COMPUTE clause. For the declaration of this cursor to be legal it should have a single SELECT statement without a COMPUTE clause.

	at org.eclipse.birt.report.data.oda.jdbc.Statement.executeQuery(Statement.java:481)
	at org.eclipse.birt.report.data.oda.jdbc.Statement.getMetaUsingPolicy1(Statement.java:420)
	at org.eclipse.birt.report.data.oda.jdbc.Statement.getMetaData(Statement.java:316)
	at org.eclipse.birt.report.data.oda.jdbc.bidi.BidiStatement.getMetaData(BidiStatement.java:56)
	at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.doGetMetaData(OdaQuery.java:412)
	at org.eclipse.datatools.connectivity.oda.consumer.helper.OdaQuery.getMetaData(OdaQuery.java:379)
	at org.eclipse.birt.data.engine.odaconsumer.PreparedStatement.getRuntimeMetaData(PreparedStatement.java:407)
	... 16 more
Caused by: com.sybase.jdbc3.jdbc.SybSQLException: Execute cursor 'jconnect_implicit_124' is declared on a procedure which contains a non-SELECT or a SELECT with a COMPUTE clause. For the declaration of this cursor to be legal it should have a single SELECT statement without a COMPUTE clause.

	at com.sybase.jdbc3.tds.Tds.processEed(Tds.java:2942)
	at com.sybase.jdbc3.tds.Tds.nextResult(Tds.java:2246)
	at com.sybase.jdbc3.tds.Tds.getResultSetResult(Tds.java:2853)
	at com.sybase.jdbc3.tds.TdsCursor.open(TdsCursor.java:295)
	at com.sybase.jdbc3.jdbc.SybStatement.executeQuery(SybStatement.java:1659)
	at com.sybase.jdbc3.jdbc.SybPreparedStatement.executeQuery(SybPreparedStatement.java:97)
	at org.eclipse.birt.report.data.oda.jdbc.Statement.executeQuery(Statement.java:477)
	... 22 more

3D bar chart

$
0
0
Hello all
I need to design a report in Maximo where I should represent failure code VS location VS count (tickets) is it possible ? to do so in BIRT? I can see the option 3d dimension but not able to define all the parameters? Please let me know the solution

Thanks
Chandra

Preventing page switching in "Edit Data Set" dialog when content is invalid?

$
0
0
I'm trying to implement a DataSetWizardPage, and I want it to prevent users from allowing invalid content, by disabling switching pages until the content is valid. This would seem to be handled by the WizardContainer, but there isn't one. I'm confused by this; any suggestions would be appreciated.

Different render behavior in BIRT 2 and BIRT 4?

$
0
0
Hi folks,

I need some help. We now migrate from BIRT 2.6.2 to BIRT 4.2.2. Therefore I test our existing rptdesigns in both BIRT versions. The rptdesigns are created with BIRT report designer 2.6.2.

Now I have seen that there are differences in the rendered PDF documents and I don't know why. Please take a look at the attached PDF documents (two PDFs and the rptdesign). It is a very easy example for my problem. The BIRT 4.2.2 engine renders the documents different then BIRT 2.6.2. In this example the paddings in the cells are not in the same high, so grid, table and cells look like “compressed”.

In our complex business rptdesigns that leads to a big layout difference, so the created reports aren't the same any more.

Do you have a solution? Is this maybe only a setting? Or does look the result from BIRT 2.6.2 because of a bug that was fixed in 4.2.2? Is there a workaround maybe? It is important that the generated PDFs are looking the same - with both render engines!

Thanks a lot!

Jörn


Format DateTime Auto Locale

$
0
0
My database has a date time column that I'm displaying it as a table in my report. I set the Format DateTime section of the data element to be "Format as: Unformatted" and "Locale: Auto". I read the documentation that if I set the locale to auto, it'll display the date time value in the "locale of the user's machine". I just want to be clear if I understand the phrase correctly.

I have a US user running the report, he/she will see dates in Month-Day-Year. I have a 2nd user in UK running the same report, he/she will see dates in Day-Month-Year.

Is my understanding above correct? If so, is the browser passing the locale somewhere in the http headers so that the report engine knows what locale the user is in?

Thanks in advance.

Calling Actuate Gadget from another gadget

$
0
0
Hi All ,

Is it possible to call an Actuate Gadget(I server) from another gadget in the same tab through hyperlink.
Currently, on click event another tab open in the browser but what i want is linked Gadget should open like Gadget only .

Please let me know if i am not clear.

Regards
Jack

Birt Viewer export PDF in server Debian

$
0
0
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.

"This chart contains no data." for chart in table

Only execute dataset query if parameter is filled

$
0
0
Hi!

My reports contain an optional parameter P. If P is filled, I need to run a query Q. If not, Q doesn't need to run, because it would not contain relevant information.

Running Q takes a long time so I don't want it to if P is not filled. I'm sure there's a simple method to do this, but I can't find it! Can anyone help?

I'm running BIRT v.4.2.0 in Eclipse Juno.

Old Notices of pending Webinars in DevShare

$
0
0
I was looking through, all the posts at DevShare and I am finding things like announcements for Webinars that were scheduled to occur years ago. There is no link to saved files of them.

I don't see how they add any value at this point. Can or should they be removed?

Two examples, seems like there are many more then just these two.

http://www.birt-exchange.org/org/devshare/designing-birt-reports/975-webinar-archive-birt-scripting-and-events/

http://www.birt-exchange.org/org/devshare/designing-birt-reports/976-webinar-archive-creating-custom-birt-data-sources/

EDIT
I just noticed that there are links above the listing that take me to www.birt-exchange.com, where it looks like I would need to create yet another account to review them.

Problem with cascading parameters

$
0
0
Hello dear community,

well it's a bit difficult to explain my issue.

I Have two parameters (Parameter_A and Parameter_B ) and two Data Sets (Data_Set_1 and Data_Set_2).
I want Parameter_A as a Listbox which contains Values needed for Data_Set_1. But i want different display-texts for the Values on the parametermask.
The selected value from Parameter_A will be used (as i said) in Data_Set_1. The Values i get then from Data_Set_1 are the Values for Parameter_B. After this the user will select one of these Values in Parameter_B and this Value will be used in Data_Set_2.


I hope you understand me.
sry for bad english.

Drill Up in Gadgets

$
0
0
Hi All,

Please tell me how to drill up in Actuate gadget . The only condition is Drill up and drill down should happen in same gadget .I have seen in one of the demos of Actuate but donot know how to do it .

Regards
Jack

Use javascript variable in data set open method?

$
0
0
In an effort to reduce duplicated work, I want to see if there is a way to use a javascript variable and have it passed/used as part of the select statement in the dataset open method?

On the report's Initialize method, I have the following javascript:

var now = new Date(); 
var begin_shift = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0);
begin_shift.setHours(begin_shift.getHours() -7);

var end_shift = new Date(now.getFullYear(), now.getMonth(), now.getDate(), 0, 0, 0, 0);
end_shift.setHours(end_shift.getHours() +5);



So instead of replicating the same date/time calculations in SQL, I'd like to pass the date the javascript generates into the open method for the main data set:

maximoDataSet = MXReportDataSetProvider.create(this.getDataSource().getName(), this.getName());
maximoDataSet.open();

var sqlText = new String();

// Add query to sqlText variable.
sqlText = "select workorder.wonum, workorder.description, workorder.worktype, workorder.changedate "
+ " from workorder "
// Include the Maximo where clause
+ " where " + params["where"]
+ " and workorder.changedate < end_shift "
+ " and workorder.changedate  >=  begin_shift "
;

maximoDataSet.setQuery(sqlText);



I tried to use the
reportContext.setGlobalVariable("begin_shift","end_shift");
, but I got the following error:

Data (id = 407): 
+ A BIRT exception occurred: Can not convert the value of end_shift to Date type.. See next exception for more information.
Can not convert the value of end_shift to Date type.


Any ideas?

Passing Date Paramter directly to Data Set qualification in ODA Data Source

$
0
0
Hello Everyone,

We are using BMC Remedy AR System ODA Data Source for developing our reports.
And almost all the reports have Date Time fields (From Date and To Date)as parameters.
The concern is that how can I use these parameters for querying the Data Set directly in the 'Data Set Qualification'.

I have attached a screenshot to show how the Qualification area becomes available on selecting the Remedy ODA Data Source.

Any suggestions ?

P.S : I do not want to use these parameters to be used in the 'Filters' for the Data Set.

Any suggestions ?

Passing Date Paramter directly to Data Set qualification in ODA Data Source

$
0
0
Hello Everyone,

We are using BMC Remedy AR System ODA Data Source for developing our reports.
And almost all the reports have Date Time fields (From Date and To Date)as parameters.
The concern is that how can I use these parameters for querying the Data Set directly in the 'Data Set Qualification'.

I have attached a screenshot to show how the Qualification area becomes available on selecting the Remedy ODA Data Source.

Any suggestions ?

P.S : I do not want to use these parameters to be used in the 'Filters' for the Data Set.

Any suggestions ?

Creating a Mini java standalone app using BIRT API's

$
0
0
Hi everyone,

I have created BIRT reports using the Eclipse report designer. Now I want to create a mini application using the BIRT API's trying to connect to three different data sources and bring in data on a report page..all this I want to do using Java code..I don't plan to use the report designer to view the report page..I want build my own front end app and test how flexible BIRT could be. What other skills do I need in order to achieve this? I know Java, HTML, CSS and Javascript..Can I have the link to BIRT API's and also suggestion to good books. Your help is really appreciated.

Thanks
Viewing all 542 articles
Browse latest View live