Print Page | Close Window

How to do this ?

Printed From: Crystal Reports Book
Category: Crystal Reports .NET 2003
Forum Name: Report Design
Forum Discription: The best way to design a report and problems you have encountered
URL: http://www.crystalreportsbook.com/forum/forum_posts.asp?TID=8715
Printed Date: 02 May 2024 at 10:58pm


Topic: How to do this ?
Posted By: GowthamSen
Subject: How to do this ?
Date Posted: 22 Dec 2009 at 10:55am
Hi,
 
I have two different queries in my crystal report.
 
Lets say Query1, Query2.
 
In Query1 , I have columns EmpId, EmpName, Sal.
 
In Query2, I have columns  Label, Actual Label, Language
 
I am displaying Query1 data in Details section. As of now I am displaying headings as Employee_Id, Emplyee_Name and Salary.
 
Now I want to display different labels as headings based on input parameter language.
 
So In Query 2, I have list of all labels and Actual Labels.
 
I created formulas for header labels as , EmpId_Lang, EmpName_Lang and Sal_Lang.
 
I created the forumla for EmpId as follows.
 
= If ( {Quer2.LABEL}="Employee Id" and {?Lang}='Chinese") Then {Query2.'Actual Label'} ELSE "Employee Id"
 
The problem is, its working only for first record. But if the conditioned label is after 1st record in Query2, its not working.
 
how can we do thi? Do we have this kind of functionality in Crystal?
 
Thanks in advance
 
Regards
Gowtham



Print Page | Close Window