Notices



Reply
 
LinkBack Thread Tools Display Modes

Old 02-28-2008, 02:10 PM   #1 (permalink)
BUS Driver

Peter Gulka's Avatar

Join Date: May 2006
Location: Winnipeg, MB, Canada
Posts: 1,638
Rep Power: 4 Peter Gulka is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)
- API/VBA

How to display parameter values

OK, so I have created a DateTime parameter tha captures a range of dates. Is there a way to display in the report the two values stored in this parameter? Is it an array?

Man, I suck at this stuff...
__________________
Peter Gulka
Chief Bus Driver
Blackbaud User Society
www.blackbus.org

Follow me on Twitter

View Peter Gulka's profile on LinkedIn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-28-2008, 02:22 PM   #2 (permalink)
Programmer Analyst

Dan Larson's Avatar

Join Date: Feb 2007
Location: St. Cloud, Minnesota
Posts: 45
Rep Power: 0 Dan Larson is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Maybe the Join() function would work for you. Something like Join({?MyDateRangeParam},", ")

But then it would be on the same line, I don't know if you'd want that.
__________________
Real programmers don’t document. If it was hard to write, it should be hard to understand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-28-2008, 02:35 PM   #3 (permalink)
BUS Driver

Peter Gulka's Avatar

Join Date: May 2006
Location: Winnipeg, MB, Canada
Posts: 1,638
Rep Power: 4 Peter Gulka is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)
- API/VBA

RE: How to display parameter values

Error

"A string array is required here"
__________________
Peter Gulka
Chief Bus Driver
Blackbaud User Society
www.blackbus.org

Follow me on Twitter

View Peter Gulka's profile on LinkedIn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-28-2008, 02:38 PM   #4 (permalink)
Programmer Analyst

Dan Larson's Avatar

Join Date: Feb 2007
Location: St. Cloud, Minnesota
Posts: 45
Rep Power: 0 Dan Larson is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Financial Edge (FE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)

Oh yeah - you'll need to convert the datetime to a string.

I think it's the CStr() function.
__________________
Real programmers don’t document. If it was hard to write, it should be hard to understand.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-28-2008, 03:50 PM   #5 (permalink)
Crystal Reports Guru

DrewAllen's Avatar

Join Date: May 2006
Location: Philadelphia, PA
Posts: 1,155
Rep Power: 4 DrewAllen is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)
- API/VBA

It's a range, not an array. You can use the Min() and Max() functions with the range to find the start and end points and then combine them however you want.

Drew
__________________
J. Drew Allen
Children's Hospital of Philadelphia

Crystal Reports and SQL Server Consultant

It is better to live your destiny imperfectly than to live an imitation of somebody else's life with perfection.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-28-2008, 03:58 PM   #6 (permalink)
Senior Member

Join Date: Sep 2006
Location: Boston, MA
Posts: 124
Rep Power: 3 stancliff is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Information Edge (TIE)

Quote:
Originally Posted by DrewAllen View Post
It's a range, not an array. You can use the Min() and Max() functions with the range to find the start and end points and then combine them however you want.

Drew
I concur with Drew. I used the min() and max() functions last week for the first time. You can also use the HasLowerBound() and HasUpperBound() functions to test to see if the parameter was supplied with a min() and max() value.

Here is a snippet of code as an example.

//has both start date and end date...
//...and start date is 1 - 9 and end date 10 - 31
...else if ( HasLowerBound({?Gift Date}) and HasUpperBound({?Gift Date})
and day(minimum({?Gift Date})) < 10 and day(maximum({?Gift Date})) >= 10 )
then chr(13) + totext(minimum({?Gift Date}), "MMMMd, yyyy") + " through " +
totext(maximum({?Gift Date}), "MMMM d, yyyy")...
__________________
Brian A. Zive
Information Systems Manager
Massachusetts General Hospital
Development Office
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote

Old 02-28-2008, 04:15 PM   #7 (permalink)
BUS Driver

Peter Gulka's Avatar

Join Date: May 2006
Location: Winnipeg, MB, Canada
Posts: 1,638
Rep Power: 4 Peter Gulka is on a distinguished road

Blackbaud Products
- Raiser's Edge (RE)
- Blackbaud Analytics/Researcher's Edge (BBA/TRE)
- API/VBA

RE: How to display parameter values

I love you guys. It worked perfectly!

__________________
Peter Gulka
Chief Bus Driver
Blackbaud User Society
www.blackbus.org

Follow me on Twitter

View Peter Gulka's profile on LinkedIn
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Spurl this Post!Reddit! Wong this Post!
Reply With Quote
Reply

Tags
display, parameter


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


Cheap Electricity - Credit Cards - Mobile Phones - Internet Marketing
All times are GMT -6. The time now is 06:10 AM.

Miscellaneous


Powered by vBulletin® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Integrated by BBpixel Team 2008 :: jvbPlugin R1012.364.1

SEO by vBSEO 3.2.0 Copyright 2008 Blackbaud User SocietyAd Management by RedTyger
Inactive Reminders By Icora Web Design

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64