Ticket T200558
Visible to All Users

Field List in ASPxReportDesigner is not showing

created 10 years ago (modified 10 years ago)

Hi,

I am currently trying to work out web based report designer. The issue I am facing at the moment is that I am not able to see the filed of the bound data source in the designer. Following is my code

C#
DataSet ds = new DataSet(); ds.DataSetName = "Data Set"; ds.Tables.Add(dataTable); var report = new XtraReport(); //report.DataSource = ds; report.DataSource = ds.Tables[0]; report.DataMember = ds.Tables[0].TableName;// "ExcelParser Data" ASPxReportDesigner1.OpenReport(report);

Where as the dataTable is populated using an excel sheet so it contains columns and rows. Even if i create a stub datatable, its fields wont show up in the report designer.

A prompt reply is highly appreciated as we are currently in evaluation of this product and want to go for license if things go smooth.

Answers approved by DevExpress Support

created 10 years ago (modified 10 years ago)

Hello Salman,

Most likely, you are using the 2014.2.3 release. With this release, you need to use the approach shown in the ASPxReportDesigner - Field list is empty when a DataSet is used as a data source thread to add a dataset fieldList. With our most recent 2014.2.4 release, the dataset will be displayed in ASPxReportDesigner automatically.
Update:
For a DataSet created at runtime, you will need to implement a custom serializer.
We have modified your sample to illustrates how it can be done.
We look forward to your feedback once you have had the opportunity to review the sample project.

    Show previous comments (6)
    DevExpress Support Team 10 years ago

      Hi Salman,

      Thank you for your follow-up.
      Please feel free to contact us if you have any further difficulties. We will be happy to assist you.

        Hello there
        I have the same problem on binding a ado.net-datable on runtime to the aspxwebedsigner. Is there still no easier solution?
        Thanks!

        Yaroslav (DevExpress Support) 9 years ago

          Hi Reto,
          When you're working with the web report End-User Designer, we save the edited report model in the XML format and convert it to JSON using a JavaScript function. As you see, there is no way we can keep the information about your data source instance. The only possible solution is to implement a custom deserializer as Andrew described above. For this reason, none of regular report event handlers are raised in the web designer - you're intended to use report scripts instead.
          Feel free to contact us at any time.

          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.