CR XI, ODBC Oracle db
My report is grouped by a Case Number, followed by details. The case number is a 9 digit string which looks like this 120012345. The first two digits represent the year. Creating a parameter and placing it into the report selection editor where the user simply enters the nine digit works fine. Immediate results.
Employees running the report would like the parameter entry to be in this format 12-12345, as the two zeros in positions 3 and 4 are never used. I created a simple formula @CaseNumber {case_number}[1 to 2]+"-"+{case_number}[5 to 9] to go with the parameter ?CaseNumber that has an edit mask AA-AAAAA. This is placed in the selection editor as @CaseNumber = ?CaseNumber. This works fine, but it takes about 5 minutes or more for the report to open. There is excess of one million records in database. If I create a second parameter selection for a date range using date values in the table it will run faster.
What I am looking for is a better solution to use the parsed case number format in the parameter selection and speed up the report.
My report is grouped by a Case Number, followed by details. The case number is a 9 digit string which looks like this 120012345. The first two digits represent the year. Creating a parameter and placing it into the report selection editor where the user simply enters the nine digit works fine. Immediate results.
Employees running the report would like the parameter entry to be in this format 12-12345, as the two zeros in positions 3 and 4 are never used. I created a simple formula @CaseNumber {case_number}[1 to 2]+"-"+{case_number}[5 to 9] to go with the parameter ?CaseNumber that has an edit mask AA-AAAAA. This is placed in the selection editor as @CaseNumber = ?CaseNumber. This works fine, but it takes about 5 minutes or more for the report to open. There is excess of one million records in database. If I create a second parameter selection for a date range using date values in the table it will run faster.
What I am looking for is a better solution to use the parsed case number format in the parameter selection and speed up the report.