How to use an Entity as Report Parameter

I’m currently using a string parameter and the Transformation is ** return “%” + paramValue + “%” **
and the sql where clause is W.Description like ${warehouse}, which works fine.

What is the proper method to use an entity as a report parameter? How is the actual filtering accomplished?
For instance, I’d like to use the Warehouse entity with the generic screen to allow the user to select but can’t seem to get this to work.


Sample project GitHub - aleksey-stukalov/sample-report-generation: The sample shows how to use reporting add-on in the CUBA Platform (requires premium package) contains report [DOCX] Invoice with entity parameter. You can open project using Studio.

You can use TablePrintFormAction or EditorPrintFormAction to print report from the screen. See Running Reports from Screens - CUBA Platform. Report Generator