Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: handling dates in crystal reports Post Reply Post New Topic
Author Message
tenzinbhuthi
Newbie
Newbie
Avatar

Joined: 02 Nov 2008
Location: India
Online Status: Offline
Posts: 7
Quote tenzinbhuthi Replybullet Topic: handling dates in crystal reports
    Posted: 02 Nov 2008 at 11:08pm

Issue:

 

We are working on crystal Reports 10 with BMC Remedy system.

 

We actually are facing issues on handling dates in crystal reports. The two cases are explained below.

 

While querying to remedy database, how do I capture values of dates on crystal side (StartDate and EndDate).

 

 

Issue 1:

The user selects FromDate as 1st Oct 2008 and End date as 15 Oct 2008. Assuming if the data is not there for 1st, 2nd 3rd Oct, the report does not display neither data nor the dates for which data is not there at boundary level. We could handle printing "NA" for the dates which come in between 4th to 15 Oct. The requirement is to print "NA" for all the dates for which data is not there.

How do I capture date

 

Issue 2:

 

Based on FromDate and Todate, I need to implement graph, the requirement is to display "NA" or a point or a continuous line

for the dates where data is not there.

 

 

 

 

 

 

Tenzin Bhutia
IP IP Logged
BrianBischof
Admin Group
Admin Group
Avatar

Joined: 09 Nov 2006
Online Status: Offline
Posts: 2458
Quote BrianBischof Replybullet Posted: 03 Nov 2008 at 12:15am
The only way I know of to do it is to create a table with "fake" data in it for each day that you want to report on. The do a left outer join, with the dummy date data being on the left side. This way, all dates are represented and the ones with no data will still be shown, but just with null values for the other fields.
Please support the forum! Tell others by linking to it on your blog or website:<a href="http://www.crystalreportsbook.com/forum/">Crystal Reports Forum</a>
IP IP Logged
tenzinbhuthi
Newbie
Newbie
Avatar

Joined: 02 Nov 2008
Location: India
Online Status: Offline
Posts: 7
Quote tenzinbhuthi Replybullet Posted: 03 Nov 2008 at 2:52am
Hi Brian,
 
Thankyou for the immediate solution.
Here the problem is the data is going through a form  and i do not have control once the data goes from selection parameter form to crystal reports.
 
I am currently using BMC ARS Remedy and crystal Reports. Where Selection parameter page is on Remedy side and based on the parameter the data is queried through Remedy database and once the required dataset is created it displays to crystal report.
 
Please help. Its urgent.
 
 
Tenzin Bhutia
IP IP Logged
Post Reply Post New Topic
Printable version Printable version

Forum Jump
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot delete your posts in this forum
You cannot edit your posts in this forum
You cannot create polls in this forum
You cannot vote in polls in this forum



This page was generated in 0.031 seconds.