最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

reactjs - Custom data filter for preview parameters for Devexpress Report Viewer - Stack Overflow

programmeradmin2浏览0评论

I am working with a Devexpress report viewer with a ASP.NET Core backend and React as frontend. I am rendering the report using a REPX layout file which is defined in the backend. I have a use case to filter the report data by having certain parameters like start date, end date etc. I could see that there is a Preview Parameters option inside the report viewer where we can define parameters to filter out the data as shown below:

But I need to have these data filters outside my report viewer, for example, I need to pick the start date, end date from a datepicker component from my react application. If I need to achieve this use case, how can I get this data passed to report viewer API or can I have a custom implementation of the Preview Parameters outside the report viewer component. Also, if I choose to pass the parameters to API (may be as query params or something), how can I use this in API code to fetch the data from datasource/datamember defined in REPX file. I am usinga stored procedure as datamember to get the data which takes in these filter data as parameters.

发布评论

评论列表(0)

  1. 暂无评论