david.garza Posted April 26, 2017 Share Posted April 26, 2017 Hi!I have a multi-select query parameter in JasperServer which performs a query against a database of 500,000+ unique records returning a single value for the user to select one or more. I simply cannot query for 500k records each time the report is open. Is there another option such as a auto-complete as your type in the value whereby performing a where lookup on the value column and all of the visible columns?Thanks! Link to comment Share on other sites More sharing options...
mlopez_1 Posted April 27, 2017 Share Posted April 27, 2017 Only if you can clasify these records in some way, then create a query that depends on another query, or querys, and its input control for that query/s.Mariano Link to comment Share on other sites More sharing options...
david.garza Posted April 27, 2017 Author Share Posted April 27, 2017 Mariano,Thank you for the response. So if I understand you currently, you are suggesting that I create cascading parameters setup. In my case, I would create two inputs:Loan # (single text entry field)Multi-Select Query using Loan # entered as a SQL like filter parameterFor the multi-select query, I would return no results if Loan # is empty otherwise I would return TOP 20 (e.g. SELET TOP 20 LoanNumber...) which dynamically updates as the user types in a loan number. I would use the selected value(s) of the Mutli-Select query in report query rather than the "filtering" Loan #.Does that sound accurate? Link to comment Share on other sites More sharing options...
mlopez_1 Posted April 28, 2017 Share Posted April 28, 2017 That's right, even you can control, in your second query, when first parameter is large than X characters and if not return empty.Mariano 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