https://docs.jmix.io/jmix/reports/run-report.html
There is the target missing.
@Autowired
private Actions actions;
@ViewComponent
private JmixButton reportButton;
@Subscribe
public void onInitEntity(final InitEntityEvent<Book> event) {
RunSingleEntityReportAction<Book> action = actions.create(RunSingleEntityReportAction.ID);
action.setReportOutputName(null);
** action.setTarget(this); **
reportButton.setAction(action);
}
I have reports with Orders Entity and call it from the orders-detail-view but the system tells me
Where is the error ?
Kind regards
Felix