I have a TRDP or TRDX that I have resolved at runtime.
These TRDP and TRDX objects don't expose anything except parameters. Not sure why this is.
How can I set the DataSource at runtime?
(please don't ask why I want to do it, I just need to, thank you)
Karl
3 Answers, 1 is accepted
0
Accepted
Silviya
Telerik team
answered on 16 Sep 2019, 01:54 PM
Hello Karl,
If the requirement is to fetch the data at run-time, the TRDP(TRDX) report need to be unpackaged(deserialized) to get the report instance. ReportPackager will return a deserialized instance of a report (Telerik.Reporting.Report object) that you can change through the provided API and finally, return the new object wrapped in InstanceRepotSource.
Best Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items
Question, why use InstanceReportSource? Docs say this is legacy. Legacy implies will be obsolete in the future.
Karl
0
Accepted
Silviya
Telerik team
answered on 17 Sep 2019, 08:17 AM
Hello Karl,
Indeed, generally, we do not recommend to use InstanceReportSource, but it will not become obsolete as it is a necessary solution in some cases. It is the ReportSource that can pass an instance of a report definition to the Reporting engine. For example, when it is required to modify the report definition dynamically and this cannot be done with Expressions, Bindings or the other tools we provide and recommend for this purpose.
Let us know if you have any additional questions.
Best Regards,
Silviya
Progress Telerik
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items