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

How many different ways are there for populating a report?

3 Answers 70 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gersh
Top achievements
Rank 2
Gersh asked on 16 Sep 2009, 03:10 PM
Here's my scenario. I have an ArrayList of HashTables (a table of rows, if you will), and I want to populate a report with its data.
-The Report Wizard has a business object, I was wondering if it were possible to point it to a class that conatins my data in said form
- If not, can I be pointed to a tutorial that states how a List works
-Ideally, I would like to treat said data structure as reports work when you have a sql table (Fields.colname)

3 Answers, 1 is accepted

Sort by
0
Accepted
Hrisi
Telerik team
answered on 18 Sep 2009, 03:43 PM
Hello Gershon Zebovitz,

It is not possible to use ArrayList of Hashtables as DataSource for the Reporting. Hashtables are untyped collection of objects and from our point of view there are no similarities with DataTable rows. Unfortunately our help article does not explain what objects are appropriate as items of the collections. For the collection items, we look for the public properties and you can use them in the binding expressions through Fields namespace, something like this: Fields.Property1, Fields.Property2 and so on.

Please note, that business objects should provide default constructor when used as DataSource in Telerik Reporting.

Kind regards,
Hrisi
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Gersh
Top achievements
Rank 2
answered on 21 Sep 2009, 03:32 PM
OK then New Attack:
     When I use the Report Wizard, the Business Object takes a class, and allows me to populate the report thusly.
Can I get clarification on this. I have a Student class with string name as a field, and the business object sees this. Where do I send my ArrayList(or if this is not possible, what is) to populate my report?

Thanks,
Gersh
0
Gersh
Top achievements
Rank 2
answered on 21 Sep 2009, 05:31 PM
Tags
General Discussions
Asked by
Gersh
Top achievements
Rank 2
Answers by
Hrisi
Telerik team
Gersh
Top achievements
Rank 2
Share this question
or