What I want to achieve?
- For a single entity Licence I want to print different reports based on Type of licence.
- I would like to have just a single button Print licence and print different report (different template).
Current solution
- In Origam model, I have multiple Reports for every LicenceType.
- I display button to user based on condition whether the file is available for specific licence.
Limations
- I need to introduce API to print licence.
Design considerations
- I want to minimize places where the report should be defined.
My idea is to configure Report File Name inside configuration table LicenceType where I would specify for every row which licence should be printed.
but ReportFileName
cannot be parameter in syntax {paramName}
- that would solve it as I could define report file name in table LicenceType and then fill it in report action button.
Report with workflow method does not work as well because I can just control load of data.
Workflow action has selection ActionType Report
but it seems it is not working.
And also ReportService supports Report as ReportService parameter and cannot be filled from Context variable.
Am I missing something? Could I configure report (or action) button to dynamically select report definition based on certain condition?
I got also idea that I might define all reports in single file as separate pages and filter results based on Visibility condition.
But is there way in Origam to generate report dynamically? I believe that the pamatetrized file name would be the easiest solution.