Monday, 15 July 2013

xforms - Having issues with evaluate-bind-property() function and constraint with warning level in Orbeon Form Runner -



xforms - Having issues with evaluate-bind-property() function and constraint with warning level in Orbeon Form Runner -

here's dummy illustration :

<xf:bind id="test-bind" name="test" ref="test" relevant="true()"> <xf:constraint level="warning" value="false()"/> </xf:bind> <xf:bind id="field1-bind" name="field1" ref="field1" calculate="xxf:evaluate-bind-property('test-bind','relevant')"/> <xf:bind id="field2-bind" name="field2" ref="field2" calculate="xxf:evaluate-bind-property('test-bind','constraint')"/>

i expect value of field1 'true' (which is) , value of field2 'false' (which not !). both evaluated 'true'. if define xf:constraint no level, got 'right' behavior. looks constraint level='warning' not 'real' constraint... normal ?

and if yes, how result of "warning validation" (aka: illustration defining conditionnal action status depends on warnings beingness activated or not) ? can't utilize valid() function neither warning level not in scope of valid() function...

as of 4.7, xxf:evaluate-bind-property() indeed gives access error-level constraints, , there "todo" in code this ;).

i don't know if work you, way deal rely on events, error summary does. specifically, hear xxforms-constraints-changed event, comes controls in view, , constraint level event('level'). can see how done in error summary code.

orbeon xforms

No comments:

Post a Comment