purnendub Posted April 24, 2015 Share Posted April 24, 2015 In my jasper report,I have filter input parameter called user name, user id. Using Jaspersoft Studio, how do I show those parameter on my report if the end user enters user name or user id. On my report, I want to show following using parameters. Filter by: User Name -Jonny User ID - 12345 IF None of those parameters is entered, none will be shown. Plz help. Link to comment Share on other sites More sharing options...
mattmb Posted April 25, 2015 Share Posted April 25, 2015 You may use a java expression like the following in a textfield of your header:( ( null != $P{User Name } ) || ( null != $P{User ID } ) ) ? "Filter by:" + ( ( null != $P{User Name } ) ? " User Name- " + $P{User Name } : "" ) +( ( null != $P{User ID } ) ? " User ID- " + $P{User ID } : "" ) : "" 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