Hello Guys,
I've got an object that I'm trying to validate, but I can't seem to get any of the rules to run, and the debug object is always an empty array.
<cfset LOCAL.VResult = getValidateThis().validate(theobject=ARGUMENTS.Delivery, context=ARGUMENTS.ValidationContext, debuggingMode='strict') />
<cfdump var="#LOCAL.VResult.getDebugging()#" />
<cfabort />
There are two rules defined within the file, and the xml appears to be being loaded by the framework as if there is a syntax eror in their it's throwing an exception about it.
<?xml version="1.0" encoding="UTF-8"?>
<objectProperties>
<property name="Delivered" desc="State of the object.">
<rule type="date" contexts="*" />
</property>
<property name="State" desc="State of the object.">
<rule type="required" contexts="*" />
<rule type="custom" contexts="*" failureMessage="The stock for this order has been moved on since it was delievered so you can no longer undo this delivery.">
<param name="methodName" value="_validation_canUncomplete" />
</rule>
</property>
</objectProperties>
</validateThis>
Any help would be greatly appreciated.
Rob