-
Are there any internal variables that can be used for ? |
Beta Was this translation helpful? Give feedback.
Replies: 8 comments 1 reply
-
Off the top of my head I think this will work: in initialize: reportContext.setGlobalVariable("reportCreationDate", new Date().toString()); in text control in grid in page-header of master page: <VALUE-OF>reportContext.getGlobalVariable("reportCreationDate")</VALUE-OF> |
Beta Was this translation helpful? Give feedback.
-
Thanks, works fine, but |
Beta Was this translation helpful? Give feedback.
-
It does not make sense to show the time when the report generation has ended. Usually, generating a report should take only a few seconds. Thus if you show the time without seconds, it should be good enough. If you really want to show a more precise time, than you'd need to get a time from your data source and do something like SET TRANSACTION READONLY (if you are using an Oracle DB, similar commands for other DBs) to ensure that all the data your data sources delivers is from exactly the same point in time. |
Beta Was this translation helpful? Give feedback.
-
My goal it to see how long the report really runs. Unfortunately we have some reports that runs some minutes, so it would be good to have a tool to stop the runtimes. And I want to test the performance of the new birt versionen on AIX, so i may upgrade to 4.16 if it's faster than 4.13 |
Beta Was this translation helpful? Give feedback.
-
Now it works, with a little bit of enhanced javascript codeing i made a footnode, that shows me the runtime of the report:
|
Beta Was this translation helpful? Give feedback.
-
That's an interesting solution. The start date is obtained in javascript executing in the report generation and the end date and comparison are done in javascript executing in the browser. It does depend on outputting to HTML and those two operating in the same timezone. I wonder if there's a way to measure report generation time strictly in report events. I seem to remember trying this in the past and found it to be tricky. |
Beta Was this translation helpful? Give feedback.
-
BIRT "computes" a report basically top-down. What I would do is:
This basically computes the time to collect the data for the report; it does not include the time to load and parse the rptdesign file and does not include all of the time needed in the emitter for formatting the output, but practically this should give you a a reasonable measure. |
Beta Was this translation helpful? Give feedback.
-
My Solutions works for me. I wanted to know, how long a birt-report runs in total. I made some performance tests between 4.13 and 4.16 on AIX 7.3 on Tomcat. |
Beta Was this translation helpful? Give feedback.
Now it works, with a little bit of enhanced javascript codeing i made a footnode, that shows me the runtime of the report: