Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
341 views
in Technique[技术] by (71.8m points)

rest - Proper way to implement custom IReportSourceResolver

I need to implement reporting in my SPA application, so I want to use REST Api and existing C# Reports.

I'm trying to implement custom Telerik Report resolver based on IReportSourceResolver. I'm not able to find any useful information how Resolve method works and how to use it.

I need to pass some metadata to resolver to be able select proper version of report instance and pass data to it. But how?

Found one post in Telerik forum that says, Resolve is called multiple times. https://www.telerik.com/forums/report-created-multiple-times#-K8zJT1k40eGRN4QBpvtQg

That's right, but what can I do in every stage? How and when to decide what instance of report to create and pass parameters to load data source?

Input parameter report in Resolve method can be id, or anything to specify report. Ok, I can send there some id or name then switch to different Report instances. Then I need to load and assign some TelerikReportData and return some InstanceReportSource.

But when Resolve is called multiple times, all this is called multiple times too.I found no info how to use OperationOrigin and create multiple step code.

So anyone knows where to look for examples how to create custom resolver with advanced functionality?

question from:https://stackoverflow.com/questions/65831695/proper-way-to-implement-custom-ireportsourceresolver

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Reply

0 votes
by (71.8m points)
Waitting for answers

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
OGeek|极客中国-欢迎来到极客的世界,一个免费开放的程序员编程交流平台!开放,进步,分享!让技术改变生活,让极客改变未来! Welcome to OGeek Q&A Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...