Symptom
Dynamic Parameters change to Static when changing the data source location of Crystal report based on Command Object.
Environment
Crystal Reports 2008 V1
Reproducing the Issue
- Create a List of Value (LOV) by name "Test" in Business View Manager on one database string field <Field> from database table <Table>.
- Create two ODBC DSNs pointing to the same database and name them as "Con1" and "Con2".
- Launch Crystal Reports 2008 V1, create a new report on "Command Object" pointing to "Con1".
- Create a command level string parameter "Param" and use it in the custom command.
- This parameter would show up in Field Explorer by name "Param".
- Edit the parameter, it would appear by default as "Static".
- From "List of Values" drop down on "Edit Parameter" window, change it to "Dynamic".
- In "Choose a Data Source" section select "Existing" radio button and select the "Test" LOV created in step 1 and click on OK.
- Refresh the report, it would show dynamic list of values.
- Click on "Database" from standard toolbar and select "Set Datasource Location".
- Change the datasource of command with "Add Command" from "Con2".
- Create a command level string parameter "Param1" and use it in the custom command which is pointing to "Con2".
- Once the Current Data Source on "Set Datasource Location" window shows as "Con2" click on Close.
- Check the properties of the parameter in Field Explorer, it will show as Static.
Cause
The command level string parameter for the Command Object pointing to "Con2" was created with a different name.
Resolution
- Repeat steps 1 to 11 given above.
- Create a command level string parameter "Param" and use it in the custom command which is pointing to "Con2".
- Once the Current Data Source on "Set Datasource Location" window shows as "Con2" click on Close.
- Check the properties of the parameter in Field Explorer, it will show as Dynamic.
Keywords
Dynamic parameter changing to static, dynamic to static, dynamic, static, crystal reports on command object, crystal reports, CR 2008 V1 , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , Problem
Product
Crystal Reports 2008 V1