Report Design
 Crystal Reports Forum : Crystal Reports 9 through 2022 : Report Design
Message Icon Topic: Display multiple dates from parameter Post Reply Post New Topic
Author Message
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Topic: Display multiple dates from parameter
    Posted: 24 Feb 2017 at 9:12am
I have a parameter {?multi_date_parameter} that allows the entry of multiple individual dates. I would like to be able to display the dates that have been selected but have not found an example of how to do this. Note that i do not want the min and max of dates. I want the list of individual dates selected.This is not a date range parameter.

I have done this with string based parameters with not problem. I just cant figure out how to do this with a list of dates.

Thanks in advance.
IP IP Logged
kevlray
Admin Group
Admin Group
Avatar

Joined: 29 Oct 2009
Online Status: Offline
Posts: 1587
Quote kevlray Replybullet Posted: 27 Feb 2017 at 5:21am
You might to be able to use JOIN, you may have to convert the prompt to text first (i.e, Join(totext({?List of dates}),', ')
IP IP Logged
cbaldwin
Groupie
Groupie


Joined: 09 Apr 2014
Online Status: Offline
Posts: 81
Quote cbaldwin Replybullet Posted: 27 Feb 2017 at 7:36am
Thanks,
I actually accomplished it this way

numbervar max := count({?Special_event_UTUK});

numbervar k := 1;

stringvar output := "";

for k := 1 to max do

(

output := output + totext({?Special_event_UTUK}[k])+", "

);

numbervar m := len(output);

left(output,m-2)
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.017 seconds.