Link to home
Start Free TrialLog in
Avatar of Taras
TarasFlag for Canada

asked on

Crystal Reports How you Map old to new command

In crystal report 2008 how you map old command to new  command they have the same filed but some selection criteria are different. What are the steps. Do I need to have old command in report then add new command or I remove old then add new?? Both of them working on same tables from the same database.
Avatar of Mike McCracken
Mike McCracken

Why don't you just edit the command if they are working on the same tables?

mlmcc
Hi,

Retain the existing command and add new command with required fields.
Go to set datasource location under database tab and map the fields one by one from the existing commands you can see there.
Click ok and replace any other references of old command fields with new command fields manually.
Check under fields explorer whether any fields are still with a tick mark from old command object and replace them with new command object.

Hope that helps.
Avatar of Taras

ASKER

mlmcc.
 I described in my another question exactly what you are suggesting that is not working, but I forgot that it was another question you responded to,  I apologize not mentioning that here again.

That is really strange you have edit command, you click it open Modified Code window, you change code (I just need to changed date criteria for selection record nothing else everything is staying the same.
But when I close window all those changes disappeared.

Raghavendra. I used the same connection and I added new command it is the same as old just one criteria is changed for date selection is changed. Now I have command and command1 in one report, in link tab I can see command1 empty  no fields in in command I can see all fields. I can not come to Map window. Both old  command and new command1 are in Current data source. I can not get Map windows.
I assume that in mapping it will be problem as one name is command and another is Command1 all fields and formulas in report are connected to command not command1.
ASKER CERTIFIED SOLUTION
Avatar of Mike McCracken
Mike McCracken

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Taras

ASKER

Thank you a lot.