Click here to monitor SSC
SQLServerCentral is supported by Red Gate Software Ltd.
 
Log in  ::  Register  ::  Not logged in
 
 
 
        
Home       Members    Calendar    Who's On


Add to briefcase

Pass a parameter value to a Dataset Parameter in SSRS 2008 Expand / Collapse
Author
Message
Posted Thursday, November 08, 2012 2:19 AM
Forum Newbie

Forum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum NewbieForum Newbie

Group: General Forum Members
Last Login: Thursday, November 08, 2012 4:00 AM
Points: 1, Visits: 7
I have a dataset with a parameter as which is passed to a query as shown below.


The issue here is DataSet parameter queryOptions does not accept the value from the Report Parameter Date.

If i hardcode any value e.g <CalendarDate> 08/11/2012 </CalendarDate> instead of <CalendarDate> = Parameters!Date.Value </CalendarDate> the report works fine.

What wrong am i doing while passing parameter.

I even created another Dataset Parameter named Date and assigned Parameter Value [@Date] even that did not work.

Note: Parameter Date is of type DateTime
Post #1382340
Posted Friday, November 09, 2012 12:54 PM
UDP Broadcaster

UDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP BroadcasterUDP Broadcaster

Group: General Forum Members
Last Login: Monday, April 14, 2014 1:52 PM
Points: 1,478, Visits: 1,020
I believe your parameter expression is invalid.

You should try.

="<XML><CalendarDate> " + = FormatDatetime(Parameters!Date.Value.ShortDate).ToString()+ "</CalendarDate> </XML>"
Post #1383209
« Prev Topic | Next Topic »

Add to briefcase

Permissions Expand / Collapse