jndh90 Posted August 18, 2014 Share Posted August 18, 2014 I have a report that shows provider information and client information, when the user selects what client status to see on the report I don't want this to effect how the rest of the report runs. If the user selects Active then I want Active clients to print on the report, if the user selects All I want all clients to print regardless of client status, but if the user selects None this means do not print any clients on the report (but I still want the provider information to print). I am not sure 1) if I need to pass parameter to the report query, 2)if I do how write the sql to not use the expression when the client status is none, 3)if I don't and use the print when expression how to I define the parameter so it knows what All means? Link to comment Share on other sites More sharing options...
sfriedman Posted August 20, 2014 Share Posted August 20, 2014 What you are describing sounds straightforward with techniques like $P{} SQL injection in the WHERE clause, Print When Expressions on subreports or creative use of grouping. But, you will need to provide more info if how want prescriptive assistance. Thanks Link to comment Share on other sites More sharing options...
rajesh.sirsikar Posted August 22, 2014 Share Posted August 22, 2014 Hi jndh9,The Best possible way to achieve what you are looking for is to create a parameter driven SQL to run your report. For detailed explanation, check my blog http://www.rajeshsirsikar.com/?p=286Rajesh SIrsikar Link to comment Share on other sites More sharing options...
jndh90 Posted August 26, 2014 Author Share Posted August 26, 2014 Thank you for commenting. I have made changes within the report query to do what I need it to do. Link to comment Share on other sites More sharing options...
jndh90 Posted August 26, 2014 Author Share Posted August 26, 2014 Thank you for the post, your blog looks to be very helpful and informative. 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