Issue Description
After creating Ad Hoc views with filters and saving them/creating reports, I'd like to show entered parameter values in generated ad-hoc report. How can I do it?
Resolution
Filter names map to parameter names in the Ad Hoc report but, because the underlying architecture of an Ad Hoc report is different than that of a report built in e.g. TIBCO Jaspersoft® Studio, the parameter is not found in the adHoc report unit's JRXML. Once the Ad Hoc report is created, you need to do the following to locate the parameterand add it to the report:
Use Jaspersoft® Studio and locate the ad-hoc report unit
Open stateXML.xml file in Jaspersoft Studio
The file should contain a filter expression, something like
<parameterizedExpressionString>dbo_ORDERS.SHIPCOUNTRY == SHIPCOUNTRY_1</parameterizedExpressionString>
So, the parameter name in this case is SHIPCOUNTRY_1
Open mainReportJRXML file in Studio and manually create a parameter with the same name, SHIPCOUNTRY_1, 'Is For Prompting' option in unchecked.
Add the parameter to Title band
Save the changes and publish the report to server
As a result, you get entered parameter value displayed in the report:
Ref. Case 00069390
Recommended Comments
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