Reminder Resend Preview
Submitted by Ben_Charlton on Tue, 23/10/2018 - 11:39
While working on email templates the other day - for the grouped reminder template.
Is it still an issue for preview ? ...ie it appeared that when I previewed what would typically be a grouped reminder. And certainly the attached document was a grouped reminder. The object being passed to the Email template was the customer object. not The document as per the special template fields.
I couldnt use `openvpms:get(.,'customer.entity.firstName')` but `openvpms:get(.,'firstName')` works fine
I had assumed the `.` would be the fields associated with the special grouped reminders. https://openvpms.org/documentation/csh/2.1/reference/reportFields#special
which would indicate customer is a field.
Re: Reminder Resend Preview
What version are you running? There was a bug fixed for 1.9.3 and 2.0 back in September last year along these lines: OVPMS-1944
Re: Reminder Resend Preview
Re: Reminder Resend Preview
Keep in mind this is in the PREVIEW screen found in Reporting-Reminders
Re: Reminder Resend Preview
This is a bug. See OVPMS-2086
If you use a JasperReport template it will work correctly.
Note that if you want to use expresssions, you can use $customer to access the customer.
E.g. concat('Dear ', $customer.firstName, ' ', $customer.lastName)
If you have a single reminder, or are grouping on patient, you can use $patient to access the patient as well.