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

'table' argument cannot be null.

1 Answer 385 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jim Richmond
Top achievements
Rank 1
Jim Richmond asked on 21 Apr 2007, 03:02 AM
If anyone runs into this error when previewing a report:

'table argument cannot be null.
Parameter name: table

Check the items you have in your groups. A misspelling of a field name  caused my issue. The error was a little vague and I only found the problem with trial and error (removing items until the problem went away).

On the subject of setting the fields for groups I had two feature requests:
1) When selecting a field for a group, pre-populate a drop down list to select the value instead of manually typing in.
2) Do I have to put all my fields I want to display in the group (looks like I have to). Normally I am used to just having to specify the main field you want to group by and not every field you want to display in the band.

Looking good. Thanks.

1 Answer, 1 is accepted

Sort by
0
Svetoslav
Telerik team
answered on 24 Apr 2007, 03:24 PM
We appreciate the extensive feedback, Jim, and thank you for your interest in the Telerik Reporting!

If I've understood you correctly we had a problem with your binding expressions but you succeeded in resolving it. You are definitely right that the error message is quite unclear and uninformative. We have a lot of work left to be done on the item binding expression incl. sophisticated expression builder that will assist you in writing expressions, add more functions, more power features, etc. I logged your observations in our bug tracking system and we will have it in mind while working on the report binding.

One of our major goals is to provide powerful yet user friendly and intuitive report designer and this includes improvements of the groups and grouping/sorting/filter criteria -- I'm sure the next versions will offer much easier ways to create a report.

Regarding the grouping criteria -- include it in all fields you need to group by. The other fields you can use only in an aggregate function. Consider the following example - create a group by country. For the example, lets assume we have 30 cities in the USA group and you want to use the City field in a group section (header/footer). Which of this 30 cities should appear? The answer is that you should instruct the data processing engine of the Telerik Reporting what value to use. So you need to use an appropriate aggregate function like First(City) or Last(City) instead of simply referencing the City field.

I hope this helps.

 
All the best,
Svetoslav
the telerik team

Instantly find answers to your questions at the new Telerik Support Center
Tags
General Discussions
Asked by
Jim Richmond
Top achievements
Rank 1
Answers by
Svetoslav
Telerik team
Share this question
or