Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

How to debug BIRT report?

Hi,

i am working on BIRT report with java script.

Is there any option for debugging the report script execution.

Like java debugger in eclipse.

0 votes



3 answers

Permanent link
Hello,
you may start here: https://jazz.net/wiki/bin/view/Main/ReportsMain
Keeping in mind that the jazz Dev Wiki is provided as-is (no official support, may contain outdated information)

Thanks.
Eric.

1 vote


Permanent link
Hi,

As for as I know is there no support by the built-in Eclipse debugger. Anyway did I find a kind of work-around to debug the Java Script in more ancient way.
There exists a rather interesting description on how to debug Java Script in BIRT reports using a popup window. More information about this can be found here http://www.lebirtexpert.com/wordpress/2010/03/03/using-a-popup-debug-window/.
Please notice that this can only be used in the report designer and not on the server. Therefore you're limited to the 1000 rows which are returned by the server, but in general it should be quite helpful to get some basic information about the variables and rows returned.

Btw, if you'd like to use it for charts as well it's necessary to define a function and a reference to it which needs to be available in a persistent global variable.

Regards
Matthias

1 vote


Permanent link
I usually use some dynamic text items that display the values of the javascript variables. You can control the visibility of those items using a global javascript debug variable that you set to either true or false. But watch out as the hidden dynamic text could impact the performance of your report, especially if it gets bound to a data set.

1 vote

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 10,952

Question asked: May 14 '12, 1:02 a.m.

Question was seen: 16,748 times

Last updated: Jul 06 '12, 1:05 p.m.

Confirmation Cancel Confirm