Forms - save parameters and Forms and letters respect a parameters type
Submitted by Ben_Charlton on Thu, 03/11/2022 - 09:37
I was wondering given a major move toward using JRXML for most forms and reports. IF we should consider allowing a form to hold basic parameters.
You would not save the document just the values in the parameters and then repopulate the form each time its viewed. I suspect this would decrease the usage of letters.
Secondly I had a thought that JRXML forms and templates should use the data type of the parameter to design the popup box to be more intuitive. We already have date boxes and check boxes for boolean and dates, however, I was thinking a field that validates integers/floats/doubles vs strings, there may be the ability to validate these datatypes prior to movement to the form to potentially save from form/letter errors.
Re: Forms - save parameters and Forms and letters respect a ...
It would certainly decrease the storage requirements if they were used in place of letters.
Templates using JRXML could have limited parameter type information, but if they were .doc/.odt, only strings would be supported.
Care would be need to be taken updating templates; any change in parameters would prevent the correct generation of historical forms.
Re: Forms - save parameters and Forms and letters respect a ...
Raised as https://openvpms.atlassian.net/browse/OVPMS-2720
Re: Forms - save parameters and Forms and letters respect a ...
Perhaps this is where template versioning could be used?