Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Technical Questions
Message Icon Topic: Sub reports in crystal reports Post Reply Post New Topic
Author Message
bharathi228
Newbie
Newbie


Joined: 09 Feb 2009
Location: India
Online Status: Offline
Posts: 1
Quote bharathi228 Replybullet Topic: Sub reports in crystal reports
     Posted: 09 Feb 2009 at 9:07pm

hi,

iam working with crystal reports.in my database table i have a
columns like dtmtime,parameter_index


dtmtime         parameter_index          status

1/2/2006         11                        SVC
4/2/2006         12                        COS
6/2/2006         11                        SVC
7/2/2006         11                        UNK
12/2/2006        12                        SVC


in my report grouping field is parameter_index

i want to display startime,endtime for each parameter_index

here starttime for parameter_index 11 is 1/2/2006
     End time                 ,,   11 is 7/2/2006

     Startime  for            ,,   12 is 4/2/2006
      endtime  for            ,,   12 is 12/2/2006


for this iam using formula fields
minimum(dtmtime),maximum(dtmtime)

but they give  startdate for all param index is 1/2/2006
and end date is                                12/2/2006

how to write formula with condition.

and my another problem is i have a subreport in this main report

in subreport i have to display Status descriptions
and toal hours

here total hours calculation is find the days between startdate and enddate of
a parameter_index and calucalte total hours in those days for each status.


for this purpose i want to pass startdate,enddate from mainreport to subreport

so iam using change report links and startime,endtime fileds linking to main report to subreport.

here the problem  is status descriptions are not displayed.why because when iam linking with mainreport to subreport it is displying
only report fields.

 

please any one help me with this problems.

iam struggle with these problems from 3 days.


pls pls pls any one give the solution for this

IP IP Logged
JohnT
Groupie
Groupie
Avatar

Joined: 20 Jan 2008
Online Status: Offline
Posts: 92
Quote JohnT Replybullet Posted: 10 Feb 2009 at 6:38am

I think minimum/maximum can take a second parameter that indicates grouping.  In your example, you would use minimum(dtmtime,parameter index).  This will give you the minimum tdmtime for each value of parameter index. 

Look at the help screen for minimum and maximum for additional information.  Good luck !

 

 

IP IP Logged
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