Jump to content
Changes to the Jaspersoft community edition download ×

When are built-in report params initialized?

2004 IR Help

Recommended Posts

By: UltraSmooth - ultrasmooth

When are built-in report params initialized?

2005-08-17 10:28

I'm trying to use a scriptlet to retrieve some data for use in the main report query by using scriplets but it seems that the REPORT_SCRIPLET parameter is null when I try to use it in my own custom parameter.


I have a parameter call GET_TABLE_NAME and it's default value is set to ((MyScriptlet)$P{REPORT_SCRIPTLET})).getQueryValue()


I use GET_TABLE_NAME in the main report query to substitute in a table name retrieved from the scriplet. When I run the report I get an sql exception where it fills in null for the value. If i do a ($P{REPORT_SCRIPTLET}==null ? "Is Null" : "Is Not Null") in the defualt parameter value field it tells me that the SCRIPTLET_PARAMETER Is Null.


Is there anyway to have my custom parameters initialize after the built in report parameters?

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

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