Hello. I've created a CRv11 report against data in an Oracle view. The report contains a dynamic parameter which uses a select query in a Crystal Command Object to provide a list of parameter values. Then I published the report to the Crystal Server.
We want the report query to be run by the user that is logged in (and not by the Oracle databse schema owner, which is "SW_MAIN."), so I modified the database configuration in the Central Management Console to use a custom database login: I changed the login information to my own oracle login and password, and then set the Table Prefix to "SW_MAIN." so that the data for the correct database schema would be selected.
When I run the report, I get an error that it can't find the datasource. I believe the problem is because the table prefix is not applied to the parameter's query at runtime.
If I remove the dynamic parameter, the report runs without error. So apparently the table prefix does get used for the main report query, but does not get applied in the case of the dynamic parameter query.
I tried replacing the parameter query in the command object by using a view instead, but I have the same problem.
Can anyone advise me on how I can fix this issue?
Thanks in advance,
Evelyn
We want the report query to be run by the user that is logged in (and not by the Oracle databse schema owner, which is "SW_MAIN."), so I modified the database configuration in the Central Management Console to use a custom database login: I changed the login information to my own oracle login and password, and then set the Table Prefix to "SW_MAIN." so that the data for the correct database schema would be selected.
When I run the report, I get an error that it can't find the datasource. I believe the problem is because the table prefix is not applied to the parameter's query at runtime.
If I remove the dynamic parameter, the report runs without error. So apparently the table prefix does get used for the main report query, but does not get applied in the case of the dynamic parameter query.
I tried replacing the parameter query in the command object by using a view instead, but I have the same problem.
Can anyone advise me on how I can fix this issue?
Thanks in advance,
Evelyn