Technical Questions
 Crystal Reports Forum : Crystal Reports 9 through 2020 : Technical Questions
Message Icon Topic: converting string to date Post Reply Post New Topic
<< Prev Page  of 3 Next >>
Author Message
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 6:36am

Again I do not have 2008 but I think under the param under the options you can set if it is required or not.

IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 7:30am
Hi..when i select the startdate(08/01/2010) and leave enddate as balnk..it displays all the data for all the months..i think there is some problem with the selection..
 
(hasvalue({?StartDate}) and date({Command.TRANSDT}) >= {?StartDate})
and
(hasvalue({?endDate}) and date({Command.TRANSDT}) <= {?enddate})
or
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) <={@ffenddate}to currentdate)
 
 
can you please look at this..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 7:32am
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) in {@ffenddate} to currentdate)

Edited by DBlank - 14 Sep 2010 at 7:33am
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 7:34am
Sorry that is not right either...
 
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) in {?startdate} to currentdate)
IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 8:49am
Hi..Could you get any solution for that problem?
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 8:52am
the last post did not work?...
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) in {?startdate} to currentdate)
 
IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 9:02am
when i use that last post..it gives the data for all the locations..eventhough if i select only one location..
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 9:04am
you did not mention having another parameter of location.
Add that as another condition
 
(NOT (hasvalue({?endDate})) and date({Command.TRANSDT}) in {?startdate} to currentdate)
and
({?location_param}= table.location)
 
IP IP Logged
swapna123
Newbie
Newbie


Joined: 14 Sep 2010
Online Status: Offline
Posts: 15
Quote swapna123 Replybullet Posted: 14 Sep 2010 at 9:12am
Sorry About that..i thought date was showing problem..so thought of discussing this first..but i have used the other parameter also..
 
(not HasValue({?Storeroom}) OR {Command.STOREROOM} = {?Storeroom})
 
 
and the code which you provided..but it still shows for all locations.
IP IP Logged
DBlank
Moderator
Moderator


Joined: 19 Dec 2008
Online Status: Offline
Posts: 9053
Quote DBlank Replybullet Posted: 14 Sep 2010 at 9:18am
AND
(not (HasValue({?Storeroom})) OR {Command.STOREROOM} = {?Storeroom})


Edited by DBlank - 14 Sep 2010 at 9:19am
IP IP Logged
<< Prev Page  of 3 Next >>
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.