Not able to pass data in array format for any of the chart in web report designer as well as desktop designer.

1 Answer 77 Views
Binding DataSource WebService Report Designer - Web
Aditya
Top achievements
Rank 1
Aditya asked on 09 Mar 2023, 12:32 PM

I'm calling API through web service data source. and in that there is one array. I want to pass that in tables, line chart, and other charts. It is not working with any of the chart or table or any component. can someone help me to how to iterate those values in any of the chart or table or to access the elements in web report designer.

This is the Screenshot of the Explorer Tab. Here count is the number and entries is array.

1 Answer, 1 is accepted

Sort by
0
Momchil
Telerik team
answered on 14 Mar 2023, 08:30 AM

Hello Aditya,

Assuming that this data source is set to the report itself, you can use an approach analogical to the one described in the Setting the content of JsonDataSource through report parameter Knowledge Base article. The only major difference is that instead of binding the data source of your chart/table/etc. to a report parameter, you are binding it to the data object of the report.

For your convenience, I am attaching a sample report that I believe resembles your scenario. For demonstration purposes, I am using a JSON data source instead of a web service data source, but the approach still applies.

I hope you find this example useful.

Best Regards,
Momchil
Progress Telerik

Brand new Telerik Reporting course in Virtual Classroom - the free self-paced technical training that gets you up to speed with Telerik and Kendo UI products. Check it out at https://learn.telerik.com/.
Tags
Binding DataSource WebService Report Designer - Web
Asked by
Aditya
Top achievements
Rank 1
Answers by
Momchil
Telerik team
Share this question
or