Check reporting input parameter in database

Hi!

In reporting function i can define input parameters and its validation. In my case there is a simple report what is require a username as an input parameter and after that generate a word document which is contains the properties of this user.

But if i do for example typo or i add not existing username it will generate an empty word document. So here is my question:
Is there any way in parameter validation part to check the input parameter in database to inform users like “Username not extist” before the report execution?

Best regards,
ZK

Hi,

You can use report parameter validation https://doc.cuba-platform.com/reporting-6.8/parameters.html#report_parameter_validation and check that user exists in the database using DataManager.

Thanks