on 09-05-2008 5:17 PM
I want my users to be able to enter a range of dates in a Parameter field. I'm doing this by setting "allow range values" to True.
I would like to show the dates they entered on the report heading. Is it possible to extract them from the Parameter field?
Thanks in advance,
Doug
Doug,
Create a formula similar to the following;
stringvar b;
numbervar x;
for x:= 1 to ubound( {?MyDateRangeParameter} )
do
(
b:= b + totext( minimum ( {?MyDateRangeParameter} [x] )) + ' to ' + totext( maximum
( {?MyDateRangeParameter} [x] )) + chr( 13 )
);
b
This will loop through each range, convert it to text, add it to a string running total separating the beginning and end dates of each range with ' to ' and adding a carriage return to the end of each range. Ensure that the formula is set to Can Grow.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
We have a winner.
When I took the time to define the BeginDate and EndDate as date variables, Minimum and Maximum worked like a charm..
To recap:
-
datevar BeginDate;
datevar EndDate;
BeginDate = MINIMUM({?RangePrarmeter});
EndDate = MAXIMUM({?RangePrarmeter})
-
will allow you to retrieve the two dates entered as a range in a parameter field so they may be displayed in the report heading.
Thanks....
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.