Symptom
- How to change the data source of a dynamic parameter?
- After pointing a report to another database, the dynamic parameter still point to the previous data source. How to point the Dynamic Parameter to another datatabase?
Environment
- SAP Crystal Reports 2013
- SAP Crystal Reports 2016
- SAP Crystal Reports 2020
- SAP BusinessObjects Business Inteligence platform 4.1
- SAP BusinessObjects Business Inteligence platform 4.2
- SAP BusinessObjects Business Inteligence platform 4.3
Cause
- Reports using Dynamic Parameters saved on the SAP BusinessObjects Business Intelligence platform, stores the dynamic parameters in the SAP BusinessObjects Repository.
- The Dynamic Parameters does not use the report data sources, but the data sources stored in the SAP BusinessObjects Repository, and this is why, when pointing the report to a new data source, the Dynamic Parameters still point to the original data source.
Resolution
- To change the data source the Dynamic Parameter points to, update the Data Connection it is based on, in the Business View Manager. The general steps are:
- In Crystal Reports, identify the prompt group the Dynamic Parameter is based on.
- In the Business View Manager, find the Data Connection the Prompt Group is based on.
- In the Business View Manager, point the Data Connection to the new data source.
- In Crystal Reports, identify the prompt group the Dynamic Parameter is based on.
- 1.1 In Crystal Reports, under the menu "File", select "Open"
- 1.2 In the Open window, in the left pane, click on "Enterprise"
- 1.3 Log On to the SAP BusinessObjects Enterprise platform
- 1.4 Open the report that contains the Dynamic Parameter from the SAP BusinessObjects BI Server.
- 1.5 In the Field Explorer pane, under "Parameters", right click on the dynamic parameter and select: "Edit"
- 1.6 In the "Parameter" window, take note of the name of the List of Values Prompt Group associated with the parameter.
The List of Values Prompt Group name is located under "Choose a Data Source", - on the right side of "Existing". Take note of the Prompt Group.
- 1.8 Click "Cancel" to close the parameter window.
- In the Business View Manager, find the Data Connection the Prompt Group is based on.
- 2.1 Start the Business View Manager, and login to the SAP BusinessObjects BI Server.
( Note: If the Business View Manager is not installed, to download it, see the SAP Knowledge Base Article 2506155 )
- 2.2 If the Welcome to Business View Manager window display, click "Cancel"
- 2.3 In the Repository Explorer pane, find the List of Values Prompt Group, and select it.
( Note: If there is no "Repository Explorer" pane, go under the menu "View", and select "Repository Explorer" )
- 2.4 In Repository Explorer pane toolbar, in the upper right corner, click on "Show Referenced Objects"
- 2.5 It will open the Referenced Objects window showing all the associated objects. Expend all the levels, and it will show:
- List of Values (LOV)
- Business View
- Business Element
- Data Foundation
- Data Connection
- 2.6 The last object, with a yellow cylinder icon is the Data Connection.
Take note of the Data Connection name.
- 2.7 Click "Close", to close the window.
- In the Business View Manager, point the Data Connection to the new data source.
- 3.1 In the Business View Manager, in the Repository Explorer pane, find the Data Connection.
- 3.2 To open the Data Connection, double click on it, and it will open on the left side.
- 3.3 Under the menu "Edit", select "Edit Connection..."
- 3.4 In "Choose a Data Source", select the new data source, and click "OK"
- 3.5 In "Set Data Connection Password":
- User Name : Enter the database user name
- Password : Enter the database password
- Confirm password : Re-type the database password
- 3.6 Set the option "Runtime Prompt Mode" to: Never prompt
- 3.7 Click "OK"
- 3.8 To test the connection, go under the menu "Tools", and select "Test Connectivity"
If the connection is successfull, it will display the message:
"Connection test completed successfully"
- 3.9 Under the menu "File", select "Save"
Keywords
CR, LOV , KBA , BI-RA-CR , Crystal Reports designer or Business View Manager , How To
Product
SAP Crystal Reports 2013 ; SAP Crystal Reports 2016 ; SAP Crystal Reports 2020