Ticket Q299515
Visible to All Users

Winforms XtraReports sqldataadapter stored procedure change in behavior since Webinar

created 14 years ago

Joe Kunk did a Webinar on using parameterized sprocs with Xtrareports. He was using 9.1 at the time. I tried to duplicate exactly what he demostrated and got completely different results, first in that RequestParameters = false had changed as documented here
BC937: The Parameters dock panel is now always shown (with no regard to the XtraReport.RequestParameters property value) if visible parameters exist in a report.
but more importantly in that the parameter changes and subsequent call to showpreview() don't seem to requerying the backend, and I'm wondering if there may be some connection.
Attached in my email to Joe and a zip of a very simple sln using Adventureworks exactly as he did in the Webinar.
Hope you can she some light on this.
TIA
Charles Hankey

Show previous comments (4)
DevExpress Support Team 14 years ago

    Hi Charles,
    Thank you for your feedback.
    The approach shown in this webinar should work with the XtraReport.BeforePrint or XtraReport.ParameterRequestSubmit event handlers in the new version of the XtraReport suite.
    We will either update or disable this screencast.
    Thanks,
    Andrew

      Thanks so much for your help and patience on this. If I use a SqlDataAdapter (and use that to generate my dataset
      as shown in the Webinar) and then set the parameter for the SDA and call the fill in the BeforePrint everything works great and I have the ability to preview at design time and get the results I expect at run-time. ( I was not able to do this with the ParameterRequestSubmit )
      One important caveat : If you have a default value for the SDA param set for testing at design time you must reset it to 0 (for Int32 param) before run-time. (haven't tested string params etc yet but I assume they must be reset to string.empty) Before I did that I found I was getting two data pulls - one for the design time param and one for the run-time param and both ending up in the same table. Very confusing and the reason I thought it wasn't working when I tried it before.
      So the otherwise excellent Webinar should just be modified to show the code going into the BeforePrint instead of ParametersRequestBeforShow and should include a call to the Fill() and there should be a warning about reseting any design time default params in the SDA.
      Thanks again. Now we're rolling !

      DevExpress Support Team 14 years ago

        Hi Charles,
        Thank you for your feedback.
        This webinar was recorded about year and an half ago, and became outdated since then.
        I will contact our XtraReport team evangelist Seth Juarez (sethj@devexpress.com), regarding this webinar.
        Thanks,
        Andrew

        Disclaimer: The information provided on DevExpress.com and affiliated web properties (including the DevExpress Support Center) is provided "as is" without warranty of any kind. Developer Express Inc disclaims all warranties, either express or implied, including the warranties of merchantability and fitness for a particular purpose. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.

        Confidential Information: Developer Express Inc does not wish to receive, will not act to procure, nor will it solicit, confidential or proprietary materials and information from you through the DevExpress Support Center or its web properties. Any and all materials or information divulged during chats, email communications, online discussions, Support Center tickets, or made available to Developer Express Inc in any manner will be deemed NOT to be confidential by Developer Express Inc. Please refer to the DevExpress.com Website Terms of Use for more information in this regard.