This is a migrated thread and some comments may be shown as answers.

Data Explorer not displaying data when object makes call to domain context

1 Answer 190 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Aaron Bowman
Top achievements
Rank 1
Aaron Bowman asked on 21 May 2010, 05:45 PM
I have a a data object that makes a call to a domain context within the web application to retrieve data. The data object loops through this data to build a list that is used by the report. The report appears to execute properly with no errors and the data is displayed properly when the report is run. The problem that I am having is in the report design tool. If I include the code that actually performs the call to the domain context, the "Data Explorer" does not display the field names from the data object. If I comment out the code that calls the domain context, the field names are displayed properly.  I have moved the domain context code out to an external file (outside of the data object) but with the same results.

            //return DomainContext.GetStatusData(null, timeToUse);      <== Data Explorer says "No Data Source"
            return null;                                                                              <== Data Explorer displays data fields

I can set it to "null" when I create the report and set it back to the proper call when I run the report, but it is a pain to do that for all reports that we intend to build. Do you have any recommendations?

Thanks,
Aaron

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 26 May 2010, 04:44 PM
Hello Aaron,

As explained in the Data Explorer help article, the Data Explorer would be populated only when there is DataSource set in design time through the report's DataSource property. You're setting the report's DataSource through code, so if there is no DataSource set at design time, the Data Explorer would be empty regardless of the code behind.
Can you specify how you've set the DataSource through the designer? A sample runnable application showing the problem would be highly appreciated.

Kind regards,
Steve
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
General Discussions
Asked by
Aaron Bowman
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or