Jump to content
We've recently updated our Privacy Statement, available here ×

Scriptlet method beforeReportInit() calls AFTER execution of main query


aprilsw

Recommended Posts

I made a test with scriptlet and main query (pl/sql call procedure with cursor returns)

And find out that sql execution of main query starts earlier than beforeReportInit()

How can i do something (write logs into DB and etc) before main query is executed?

Link to comment
Share on other sites

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Unfortunately, I don't think a Scriptlet will work for you in this instance. I believe beforeReportInit is triggered just before the Report is initialized which happens after the query is executed. See https://community.jaspersoft.com/jasperreports-library/issues/4551 for more details on the flow. Per that link, I think a custom SQL Executor is what you will need - then you can do whatever you want before our SQL is executed. I hope this helps.

-Mike

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...