Run Report from view or edit window.

Is it possible to run a given report from a button in explorer or editor without using the report dialog window.
What I mean is click a button an a report with given name
appears with or without parameter dialog and not the dialog window with all reports.

Hi,

is “2.2. Running Reports from Screens” what you mean?

You can do something like this to run a report from a screen:

@Inject
private Button reportButton;

@Override
public void init(Map<String, Object> params) {
    reportButton.setAction(new RunReportAction("report", this));
}

Bye,
Mario

I would like to run Report per instance. One of the reports product button.
The code above opens a dialog, where you can select from multible reports. I want to execute one of the reports on button.

Hello.

You can use com.haulmont.reports.gui.ReportGuiManager bean (available in Web, GUI and Desktop modules).
You should call printReport(com.haulmont.reports.entity.Report, java.util.Map<java.lang.String,java.lang.Object>) method .
As arguments you should pass report object and map with parameters (parameter aliases should be used as keys).