Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can you update a data table, without losing your columns in your report in Crystal Reports?

I have a Crystal Report that contains numerous fields and functions that all reference one SQL Server data view. Recently, I've had to make a copy of the underlying SQL data view and make a few modifications. I need to use my new data view as my data source within my Crystal Report.

My problem is that I need to keep the original data view, without changing it's name, but I need my Crystal Report to reference the new data view.

Is there an easy way for me to update my report's data source without having to update all of my columns and formulas? Otherwise, I'm starting from scratch and might as well create a new report, which I'd prefer not to do.

like image 808
RLH Avatar asked May 30 '13 15:05

RLH


People also ask

How do I change a stored procedure in Crystal Reports without losing fields?

Under DATABASE select SET DATASOURCE LOCATION, not Database Expert where you remove a database. From the Set Datasource Location dialogue you can update an existing source with a new source (e.g. swap one existing SP in the report for another SP not in the report) without removing anything.

How do you update database fields in Crystal Reports?

Refresh the Crystal ReportSelect Report, Refresh Report Data from the menu bar. The message "Refresh Report Data?" appears. Click OK. Allow the report to process.

Is it possible to edit SQL made by Crystal Reports?

Editing a Query Once the Crystal Report is created using a query, to make changes to objects you have to go to edit data source option. When you click on the option, it will open an Edit Query panel where you can add/delete objects, apply filters, etc.


2 Answers

Yes. I haven't used CR in a while, but I used to do that frequently. There's actually a built-in option to change your data source and remap any fields it can't find in the new data source.

Check out #1 of Todd Watson's answer: How do I point Crystal Reports at a new database

like image 125
PowerUser Avatar answered Sep 30 '22 01:09

PowerUser


Go to Field Explorer -> Right click on Database fields -> Go to Set Datasource location -> In lower section (Replace with) -> Go to My Connections -> Right click on New Dataset (go to Refresh).

like image 43
Amit Bhagat Avatar answered Sep 30 '22 01:09

Amit Bhagat