Crsdev,
The solution, as I have implemented it, is using BOXI r2 with an Oracle 9i database, reporting from stored procedures. I am not sure how this will work with other environments. There are also limitations with this approach so I have an open case with BO to hopefully obtain a more feasible solution. The approach I took was to remove all parameter references and look-up queries from the stored procedures and corresponding packages. The step by step process, if you already have a procedure with parameters and look-ups is as follows:
1. Make a back-up of your current package and procedure
2. Alter the original package and procedure to comment out all parameter references and procedures used as look-up values for the dynamic parameters.
3. In the Crystal Report, comment out all formula references to any parameters declared on the procedure.
4. Set the datasource location point to the modified procedure (any parameters previously declared in the procedure will be removed from the report)
5. Using the database expert remove all look-up procedures from your report and add commands for each required look-up value (Add Command is the first selection under your database connection, when expanded) – Copy your look-up SQL statements from the backup of your package and procedure
a. If you want to allow for ‘ALL’ values you would add a statement similar to this to your SQL statement:
i. union all select '~ALL' from dual
6. Recreate your parameters in Crystal Reports using the defined commands as look-up values for your dynamic parameters (if you use the same names most of your formulas will not require any changes when you remove the comments
7. Uncomment the Crystal formulas that a referencing your parameters
8. Test your report
9. Clean up your package and procedure
This process has proved to work for the reporting that I have been working with but may cause problems if your parameters must be present in the procedure. I tried many different approaches and found dynamic parameters only work as expected when all parameters either dynamic or static are removed from the procedure.
I hope this helps. Perhaps Business Objects will have a more flexible solution soon.
Ray