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

Complex report Scenario

3 Answers 100 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ubuntu
Top achievements
Rank 1
Ubuntu asked on 07 Jun 2011, 05:41 PM
Dear all,

I am fine to create and run most of my direct reports, now I have moved to the complex ones.
By complex I mean that contain a complex logic to combine the who;e data needed for the report.

I first create a class to bind to my report object, that will hold all my data.
I then define an IEnumerable<myclass> GetData method to fetch the data:
1- The method first call another method marked with [invoke] to populate the primary data as IEnumerable<myclass>
2- The method then add new entities to my IEnumerable variable holding my initial values.
and so on ..

When I call the method that doesn't require any additional data to be added to my initial IEnumerable variable, I am fine & the report is displaying the data, BUT if the scenario require additional data to be added ... the report doesn't display anything.

What is wrong with this ...
Regards

3 Answers, 1 is accepted

Sort by
0
Massimiliano Bassili
Top achievements
Rank 1
answered on 08 Jun 2011, 08:41 AM
This sounds like problem with the data preparation rather then reporting problem. Can you test whether binding a GridView/DataGrid to your datasource works correctly?

Cheers!
0
Ubuntu
Top achievements
Rank 1
answered on 08 Jun 2011, 12:15 PM
Hello,

I beleive the Linq query is fine, but the data is loaded after I add other entries to the IEnumerable collection.

How Can I be sure the data is loaded first ...?

Regards

EDITED:

I believe telerik.reporting is using the Entity class to feed the report rather than the domainservice class created for other SL applications. Is this correct...?

If so, If I moved the methods to my domainservice how can bind it to the report at the SL applications using MV concept ?

Regards
0
Ubuntu
Top achievements
Rank 1
answered on 08 Jun 2011, 09:27 PM
Never mind, I got it work successfully ... !!
Regards
Tags
General Discussions
Asked by
Ubuntu
Top achievements
Rank 1
Answers by
Massimiliano Bassili
Top achievements
Rank 1
Ubuntu
Top achievements
Rank 1
Share this question
or