Hi,
I am running SQL Server 05 (SP 1 CTP) and Visual Studio 05.
Is the reportViewer used for the Asp.net webforms supposed to have a working date time picker control I know that this was an issue on the beta 2 but I am still expericiencing the same problem. The date report parameters work fine on the preview but when displayed on the ReportViewer in a webform they don't work.
I am running version 8.0.0.0 of the Microsoft.ReportViewer.WebForms
Thanks, Mauricio

DateTime picker and the ReportViewer
stg1
Rodrigo Wolburg
fuzzfoot
Omar Hector 123
Microsoft JScript runtime error: 'resultfield.id' is null or not an object
After investigating the problem further using the javascript debuuger I found that the problem was being caused in the ClickDay function, the following line being the culprit:
var eltValidator=win.parent.document.getElementById(ifrm.resultfield.id+g_strDatePickerRangeValidatorID);
I've look at the supplied Microsoft ASP.NET 2.0 application supplied with SQL Server
Express 2005 Reporting Services and there version works fine without any errors.
http://localhost/ReportServer$SQLExpress/Pages/ReportViewer.aspx
If anybody could shed anymore light on the problem or a suggestion for a workaround, that would be great!!!.
Chango V.
David McComb
Now I am getting the javascript error when selecting a date on a page with no layout and only the ReportViewer control. The confusing thing is that it doesn't happen on every run which lead to a misdiagnosis of the cause.
The error:
resultfield.id is null or not an object
occurs in ClickDay on the line:
var eltValidator=win.parent.document.getElementById(ifrm.resultfield.id+g_strDatePickerRangeValidatorID);
I tried running the application outside of the Visual Studio environment and it works fine (so far).
Therefore, it may be that the error only occurs when the application is run under visual studio.
Ed Psyk
I figured out the cause on my case. The evil Reporviewer does not generate the apropiate javascript code when inside a master page.
I removed the master page code from my aspx page and sure enough the date controls work!!!
I hope this helps,
TTE
Michael Pollard
JosRyan
Jasimons
furtivefelon
This problem does not occur because you are using a master page but because the javascript relies on the fact that the control is in a fixed position on the page. Any containing elements, divs etc. that use relative positioning cause the javascript for this control to fail when it tries to position the div used to display the calendar. Because of this and other reasons, I have found that it is very hard to place the reportviewer control into existing layouts (ie. a master page) and have since abandoned this approach.
rumen101010
I too am getting this annoying error. Has anyone found a workaround. Please help.