Expression Error
Submitted by gretalloyd on Thu, 01/12/2011 - 11:37
Hi,
Is there a way to stop "expression error" from appearing on documents if the field is blank. I've noticed that it won't print "expression error" if the sex is not selected.
I'd like to have this happen if the 'supplier person' first name: [openvpms:get(party:getPatientReferralVet(.),'firstName')] is blank.
Thanks,
Greta
Re: Expression Error
Either:
1. party:getPatientReferralVet(.) is not returning a vet, so the call:
is being made without a valid object.
2. party:getPatientReferralVet(.) is returning a Veterinary Practice, which doesn't have a firstName field
If the problem is 1, you'd have to change the report template to suppress display if the field was in error.
This is only available to jasperreports. Its not supported in Word of OpenOffice templates.
If its 2, you can:
-Tim