Reminders - "date printed" merge field
Submitted by Guest on Fri, 06/02/2015 - 10:42
Hi Guys,
I'm wondering if there is any merge field facility to print the date on each reminder type to reflect when the reminder run was printed?
Much like a standard letter would be dated, so we are wanting to do this for our reminders also.
Cheers,
Jess
Re: Reminders - "date printed" merge field
You could add the startTime field to the letter.
see
http://www.openvpms.org/document-merging-open-office-writer
http://www.openvpms.org/documentation/csh/1.7/reference/reportsForms
Cheers
Ben
Re: Reminders - "date printed" merge field
To insert the date when the report was generated, use either:
In Name, enter a field name, e.g. Now
In Value, enter: [java.util.Date.new()]
-Tim
Re: Reminders - "date printed" merge field
Thanks Ben and Tim,
Your replies got us some success, however we have hit another issue!
We were unable to successfully print the reminder (we have tried it on only 1 reminder type at this stage to test before changing all of our reminder types)
We have noticed that when uploading the template reminder into Open VPMS we cannot change the "copies" box on the left hand side to be 0 or blank as all of our other reminder types are. It defaults as 1 and will not allow for 0 to be used.
This seems to be the only difference between our new reminder type with the "date printed" on it and all other pre-existing reminders. When we try and print the error message we get reads:
"Cannot print reminder. There is no document template for Senior Pet Review with a reminder count of 0"
We suspect this is the reason that we are unable to trial our reminder run with the "date of print" on it?
Any thoughts would be greatly appreciated!
Thanks kindly,
Jess
Re: Reminders - "date printed" merge field
Jess - this error is due to a bad reminder type setup. As it says in http://www.openvpms.org/documentation/csh/1.7/admin/type/reminderType
The error you are getting indicates that you do not have a Reminder Count 0 template - OR - as it says in http://www.openvpms.org/documentation/csh/1.7/reporting/reminder
I suspect also that you may get the same error if the Document Template is not of the require type (ie Patient Letter or Grouped Reminder). I will check on this and update the CSH text if so.
###UPDATE - I just checked (by changing the Document Template Type to from Patient Letter to Bank Deposit - and no error - so this is not causing your error.
Regards, Tim G