Avoiding multiple calls to same webservice

1 Answer 57 Views
DataSource WebService Report Designer (standalone)
Neil N
Top achievements
Rank 1
Iron
Veteran
Iron
Neil N asked on 17 Oct 2022, 01:22 PM
I'm calling a webservice that returns four json arrays.  Do I really have to call the webservice four times to show four tables (one from each array)?  There's no way to make one call and construct tables from the different json paths?

1 Answer, 1 is accepted

Sort by
0
Todor
Telerik team
answered on 20 Oct 2022, 08:09 AM

Hello Neil,

Indeed, if you use a different JSON path with the same WebService end-point, the DataSource would be considered as different and the call to the Web Service would be performed for each table.

As a workaround, you may use a single WebServiceDataSource for all tables, and apply "Client-side" filtering - see Filtering Data. This way, the whole data will be fetched once and reused across the tables.

Alternatively, you may use a single WebServiceDataSource assigned to the Report and distribute the corresponding data to the tables with Bindings. You may check the article How to use the ReportItem.DataObject property in expressions for more details.

Regards,
Todor
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
DataSource WebService Report Designer (standalone)
Asked by
Neil N
Top achievements
Rank 1
Iron
Veteran
Iron
Answers by
Todor
Telerik team
Share this question
or