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

REST Service Accessing Report programmatically

1 Answer 112 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Carsten Koster
Top achievements
Rank 2
Carsten Koster asked on 29 Oct 2013, 03:29 PM
Hey there,

just a quick Question:
Is it possible to programmatically change a report that is being generated by the Telerik Reporting REST Service?
The ItemDataBinding or needDatasource events to which I can subscribe when resolving the report are unfortunately not fired.

To be more specific, I would need to alter a datasource of a report depending on the passed report parameter values.

I have a DataSource which takes multivalue parameters but it is possible that those Lists are empty. Currently the DataSource will be empty in that case so I'd like to be able to change the SQL and remove the parameters which are empty.

Thank you for your help!

Regards,
Kris

1 Answer, 1 is accepted

Sort by
0
Accepted
Peter
Telerik team
answered on 30 Oct 2013, 03:16 PM
Hi Kris,

Generally the ItemDataBinding and NeedDatasource are fired with the initial document rendering operation. Additionally in order to fire the NeedDataSource the data item DataSource property should not be set to any DataSource components. Still based on the provided information our recommendation is to use the ObjectDataSource component to manage the SQL query according the parameters. Additionally you may find useful the ObjectDataSource Wizard help article.

Regards,
Peter
Telerik

Have you tried the new visualization options in Telerik Reporting Q2 2013? You can get them from your account.

Tags
General Discussions
Asked by
Carsten Koster
Top achievements
Rank 2
Answers by
Peter
Telerik team
Share this question
or