1.6 cannot change field error msg in archetype if assertion is type=lookup
Submitted by Guest on Tue, 05/03/2013 - 03:33
If you try to change the error message for a field in an archetype that uses assertion of type=lookup, then you get the error "Failed to validate null of descriptor.assertion: Concept is required".
I tried this with the reportType field in the entity.documentTemplate archetype and also the title field in the party.customerPerson archetype.
[How did I find this? I am having difficult with Kettle loading document templates and I wanted to alter the error message away from the standard "An error message" to be sure that the error was occuring in the field that I thought it was.]
Regards, Tim G
Re: 1.6 cannot change field error msg in archetype if ...
Works for me. Can you provide a list of steps to reproduce this problem?
-Tim A
Re: 1.6 cannot change field error msg in archetype if ...
Tim A: Administration|Archetypes - find entity.documentTemple, click Edit; navigate to page 2, reportType, click 'lookup' in the Assertion Descriptors, modify the Error Message text, press OK - result is below. Note that if you try this with the archetype field (which has lookup.local assertion) then you can happily change the error msg text. Regards, Tim G
Re: 1.6 cannot change field error msg in archetype if ...
This is a problem with assertion.lookup.adl. You should be able to remove the concept node and reload archetypes. Raised as https://openvpms.atlassian.net/browse/OVPMS-1288
-Tim A