includeIf HTML form entry module

11 views
Skip to first unread message

Julian Barrera Vergara

unread,
Apr 1, 2015, 5:08:48 PM4/1/15
to d...@openmrs.org
Hi all!!

Recently I've updated the HTML Form entry module because I need add a div with a Id, I have the 2.4 version, after of update appears this error:

codes [null.htmlForm.xmlData,null.xmlData,null.java.lang.String,null]; arguments []; default message [The value of attribute "velocityTest" associated with an element type "includeIf" must not contain the '<' character.]
The value of attribute "velocityTest" associated with an element type "includeIf" must not contain the '<' character. 

This is the code line that I have:
<includeIf velocityTest="$patient.age < 5" >

if anyone can help me, I would be very grateful


-- 

Julian Barrera Vergara| Analista de sistemas

Darius Jazayeri

unread,
Apr 1, 2015, 6:09:27 PM4/1/15
to dev
Hi Julian,

I'm not sure why this behavior would have just changed, but I think the fix is to swap the < for &lt;

(Basically, the file you are writing is actually XML, and I think it's not actually valid to have < in there.)

-Darius

--
OpenMRS Developers: http://om.rs/dev
Post: d...@openmrs.org | Unsubscribe: dev+uns...@openmrs.org
Manage your OpenMRS subscriptions: http://om.rs/id
 
*** THIS GROUP WILL BE MOVED to OpenMRS Talk effective 10 April 2015 at 19:00 UTC. Please visit https://talk.openmrs.org/t/openmrs-developers-group-changes-2015-04-10/1508 for details and to make necessary changes.

Julian Barrera Vergara

unread,
Apr 1, 2015, 6:15:32 PM4/1/15
to d...@openmrs.org
Hi Darius

Now appears the following error:

codes [null.htmlForm.xmlData,null.xmlData,null.java.lang.String,null]; arguments []; default message [The reference to entity "lt" must end with the ';' delimiter.] --> The reference to entity "lt" must end with the ';' delimiter.

<includeIf velocityTest="$patient.age &lt 5" >

To unsubscribe from this group and stop receiving emails from it, send an email to dev+uns...@openmrs.org.

Darius Jazayeri

unread,
Apr 1, 2015, 6:27:34 PM4/1/15
to dev
Just like the error message says, it should be &lt; with a ; at the end.

-Darius

Julian Barrera Vergara

unread,
Apr 6, 2015, 4:07:57 PM4/6/15
to d...@openmrs.org
Hi Darius!

Thanks, it was the error
Reply all
Reply to author
Forward
0 new messages