I am developing on an XP Machine with CR XI R2 SP4 - my report is using XML over HTTPs, and I am passing HTTP Parameters to the xml source. When you add HTTP parameters to be used in the querystring, the designer will automatically set up report-level parameters which will be used in the querystring.
I've designed the report to display these report-level parameters. I've also designed the XML datasource to return the querystring in the datadata (this is done over .net). This way, I can compare the report-level parameters to the HTTP parameters that the report is using.
When I open my CR Designer for the first time, and open my report, then preview the report. The prompt asks me to enter values for the report-level parmaters. After the report renders, I can see the values I entered in the report. but the Querystring does NOT send the http parmeters on the first try. As soon as I hit Refresh in the previewer and use the current parameter values, the values ARE sent to the datasource.
Querystring used on first load:
/pm/Reports/XMLStream.aspx?UserEmail=&BestId=
Querystring used on first refresh:
/pm/Reports/XMLStream.aspx?UserEmail=werr&BestId=2
Note again, this is inside the designer. I didn't notice it at first because once you do that first refresh, it works nearly everytime. Now my production application is an asp.net website, the problem occurs nearly everytime on the website because of the nature of session controls. For now though we have a problem at the designer level we can work with.
My question is, why do the HTTP parameters not send on the first preview, but they do send for previews after a refresh?
For anyone willing to test this, here is my ASPX page which helped test the problem:
XMLStream.aspx.cs: SEE SECOND POST
If you connect your report to this aspx page, you will get one table called 'test', with one column called 'value'. Put the value field in the details level of your report. This will show you inside the report what querystring was sent to the xml page ! You will need a xsd file, I cannot post it here because these forums do not seem to post xsd code.