on 12-12-2011 10:32 PM
I have a report based on a stored procedure. Everything is working ok, the SP takes the parameters and creates the output/report. My problem though is when I refresh the report, using new parameter values, nothing happens except the old report comes back. The SP takes about 1 minute to complete the first time, but when I refresh it comes back right away. The parameters are displayed on the report, and they show the new parameter values I entered, but the data does not reflect that. The only way to get it to use the new parameter values is to do a Verify. That always works.
Is there a way to get it to refresh? Our users use Infoview and Verify is not available on Infoview. The refresh on Infoview does nothing, just like in the Desktop client. Only Verify works to use the new parameter values in the SP to generate the report.
I set the parameter in Report Options and Options "Verify stored procedure on refresh" to ON but that isn't doing anything.
Any ideas?
Hi,
What is the version of the CR designer and what database is it?
-Abhilash
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I figured this out. I initially didn't have any of the detail on the report. That may have had something to do with the refresh not rerunning the procedure.
The goal of the procedure is to output the data to a file instead of the report because the output is enormous. So, actually doing the FETCH inside the SP instead of allowing Crystal to do the FETCH may have also caused this issue.
I figured out that I could create a cursor (not the REF cursor) in the SP, open it, fetch loop, write to file, close. After that, open the REF cursor, a second cursor that does nothing but count the total number of records processed, put that number on the report, and everything works fine. Refreshes take the new parameters.
User | Count |
---|---|
77 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.