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

how to use multiple objectDataSource in a single Report ?

1 Answer 712 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Md.Hasanuzzaman
Top achievements
Rank 1
Md.Hasanuzzaman asked on 15 Sep 2012, 08:37 PM
I am trying to use multiple objectDataSource in a single report but i got an error

 Only fields from the current data source 'objectDataSource1' are allowed 


I added objectDataSource1 first then another one named objectDataSource2.

i need to add some fields in Report from objectDataSource2. but i get this error.
Please tell me how can i overcome this problem.
thank you. 

I am using Telerik Reporting Q2 2012 

1 Answer, 1 is accepted

Sort by
0
Elian
Telerik team
answered on 19 Sep 2012, 12:33 PM
Hello,

Since you cannot use more than one DataSource at a time, you have to either change your data-retrieval logic or your report's layout. You can:
  • Rework the data-source so it returns all the data you need at once.
  • Create classes which will retrieve the data and merge it, then use ObjectDataSource
  • Rearrange your layout and instead of binding the data to the report itself, use data items: Table/Crosstab/List 
 
Kind regards,
Elian
the Telerik team

BLOGGERS WANTED! Write a review about Telerik Reporting or the new Report Designer, post it on your blog and get a complimentary license for Telerik Reporting. We’ll even promote your blog and help bring you a few fresh readers. Yes, it’s that simple. And it’s free. Get started today >

Tags
General Discussions
Asked by
Md.Hasanuzzaman
Top achievements
Rank 1
Answers by
Elian
Telerik team
Share this question
or