xxforms-invalid and xxforms-valid

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

xxforms-invalid and xxforms-valid

bsteuhl
The xxforms-invalid and xxforms-valid events do not work anymore in latest build with function xxforms:valid():

<xforms:action ev:event="xxforms-invalid" ev:observer="CQI">
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow1" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Bio, true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2a" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Symptoms, true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2b" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:MedicalHistory, true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2c" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:SurgicalHistory, true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow4" value="if(xxforms:valid(instance('CQI')/CQI:Procedure, true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow5" value="if(xxforms:valid(instance('CQI')/CQI:PostOp, true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow6" value="if(xxforms:valid(instance('CQI')/CQI:ClinicPostOp, true()) = false()) then 'Invalid' else ''" />
                        </xforms:action>

                        <xforms:action ev:event="xxforms-valid" ev:observer="CQI">
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow1" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Bio, true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2a" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Symptoms, true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2b" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:MedicalHistory, true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2c" value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:SurgicalHistory, true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow4" value="if(xxforms:valid(instance('CQI')/CQI:Procedure, true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow5" value="if(xxforms:valid(instance('CQI')/CQI:PostOp, true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow6" value="if(xxforms:valid(instance('CQI')/CQI:ClinicPostOp, true()) = true()) then 'Valid' else ''" />
                        </xforms:action>
Reply | Threaded
Open this post in threaded view
|

Re: xxforms-invalid and xxforms-valid

Alessandro  Vernet
Administrator
Hi Brian,

Would you be able to send us a standalone example that we can run here to reproduce this issue?

Alex


On Sat, Jan 12, 2013 at 4:52 AM, bsteuhl <[hidden email]> wrote:
The xxforms-invalid and xxforms-valid events do not work anymore in latest
build with function xxforms:valid():

<xforms:action ev:event="xxforms-invalid" ev:observer="CQI">
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow1"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Bio, true()) =
false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2a"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Symptoms, true()) =
false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2b"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:MedicalHistory,
true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2c"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:SurgicalHistory,
true()) = false()) then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow4"
value="if(xxforms:valid(instance('CQI')/CQI:Procedure, true()) = false())
then 'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow5"
value="if(xxforms:valid(instance('CQI')/CQI:PostOp, true()) = false()) then
'Invalid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow6"
value="if(xxforms:valid(instance('CQI')/CQI:ClinicPostOp, true()) = false())
then 'Invalid' else ''" />
                        </xforms:action>

                        <xforms:action ev:event="xxforms-valid" ev:observer="CQI">
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow1"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Bio, true()) =
true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2a"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:Symptoms, true()) =
true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2b"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:MedicalHistory,
true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow2c"
value="if(xxforms:valid(instance('CQI')/CQI:Patient/CQI:SurgicalHistory,
true()) = true()) then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow4"
value="if(xxforms:valid(instance('CQI')/CQI:Procedure, true()) = true())
then 'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow5"
value="if(xxforms:valid(instance('CQI')/CQI:PostOp, true()) = true()) then
'Valid' else ''" />
                                <xforms:setvalue ref="instance('controls')/CQI:WorkFlow6"
value="if(xxforms:valid(instance('CQI')/CQI:ClinicPostOp, true()) = true())
then 'Valid' else ''" />
                        </xforms:action>



--
View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xxforms-invalid-and-xxforms-valid-tp4656183.html
Sent from the Orbeon Forms (ops-users) mailing list archive at Nabble.com.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws




--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
OW2 mailing lists service home page: http://www.ow2.org/wws
--
Follow Orbeon on Twitter: @orbeon
Follow me on Twitter: @avernet