Wrox Programmer Forums
|
BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7
This is the forum to discuss the Wrox book Professional SQL ServerReporting Services by Paul Turley, Todd Bryant, James Counihan, George McKee, Dave DuVarney; ISBN: 9780764568787
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Professional SQL Server Reporting Services ISBN: 0-7645-6878-7 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 20th, 2004, 12:40 PM
Authorized User
 
Join Date: Dec 2004
Posts: 13
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to bsullins
Default Setting dynamic values for @parms

The majority of the reports I'm creating in Reporting Services use parameters that need to be dynamic, such as, sales reports running for the previous day.

The solution I have come up w/ so far is to just make the stored proc have a default for the parameter. This works, but it would be better to do this through reporting services as I would need to modify a ton of procs out there to implement this among all our reports.

If anyone knows how to set the default for a parameter through reporting services to the previous date, please post!

Thanks,

--
Ben Sullins
Sql Developer - Our Vacation Store
__________________
--
Ben Sullins
Sql Developer - Our Vacation Store
 
Old February 17th, 2005, 03:20 PM
Authorized User
 
Join Date: Aug 2004
Posts: 31
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to barmanvarn
Default

just create a new dataset and call it default date. Set it equal to
dateadd(dd,-1,getdate(). Then just set this dataset as the default for your paramenter. Bang, you're all done.





Similar Threads
Thread Thread Starter Forum Replies Last Post
Setting Default values of DataGrid in C#2005 saxitalis C# 2005 0 August 15th, 2007 03:33 PM
setting default values prithvi28 XSLT 1 October 3rd, 2006 01:38 PM
Dynamic Checkboxes using dynamic Select Values bsheridan Classic ASP Databases 0 March 12th, 2006 10:17 AM
Setting ReadOnly Property Values Gavin265 General .NET 8 May 19th, 2005 12:49 PM
Setting Dynamic Connection String jayaraj General .NET 1 July 9th, 2004 08:19 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.