Report print from a popup screen where parameters are filtered conditionally

I have a customer table and want to print Invoices as follows:

  1. when I select a customer and hit a button, it will pop-up a window with list of invoices of that customer only.
  2. when I select one or more invoices and hit print button, it get those invoices printed without any further manual selection of parameters.

What is the best approach to perform this?

Hi Mortoza
The simplest solution is the following:

  • Show custom popup window with list of invoices. It's described at topic [url=https://www.cuba-platform.com/discuss/t/advanced-popup-screen]Advanced Popup Screen[/url]
  • Run report programmatically using the ReportGuiManager. it's described [url=https://www.cuba-platform.com/discuss/t/how-to-pass-parameterfrom-a-particular-screen-to-report-script]here[/url]