aprilsw Posted February 24, 2023 Share Posted February 24, 2023 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 More sharing options...
Michael Bielkiewicz Posted February 26, 2023 Share Posted February 26, 2023 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 More sharing options...
aprilsw Posted February 27, 2023 Author Share Posted February 27, 2023 Thank you! Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now