ReportRunView is not filtered by associated view ids

Hi,

We have a similar issue like this: Reports not filtered on view · Issue #2945 · jmix-framework/jmix · GitHub
The difference is that we have multiple views for the same entity and different reports are available for the given entity depending on the views. Currently, all reports are available in the ReportRunView regardless of the views set for the reports. We see that the ReportSecurityManager queries the reports correctly and passes this list to the ReportRunView, however, the ReportRunView load delegate ignores this and loads the available reports again but the screen parameter is not set.

Thanks,
Peter

Hi,

What Jmix version do you use?

Regards,
Ivan

Hi,

2.6.1

Hi Peter
I apologize for taking so long to get an answer. I tried to reproduce the problem according to your description.
In my example. There is a Customer entity. Two reports were created for it: Customer and Customer (2). Each of the reports was run 3 times. But if you select one of them and open the Execution history, all launches of all reports for the Customer entity will be visible (A total of 6). Is that what you meant?
Please clarify: maybe I missed something.

Hi Dmitry,

Sorry if my description was not clear.

Please add the following to your example

  • create two listviews for the Customer entity
  • add a report run action to both listviews
  • set the two existing reports so that one is only available on one listview and the other only on the other (on Roles and views tab of the Report detailview)

When executing the above action on the listviews, both reports can be selected in the report run dialog window regardless of which view they were assigned to.

I hope this additional information helps you reproduce the problem.

Thank you for your more detailed answer. This will really help to reproduce the problem more accurately.