xxforms:if appears to be broken

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

xxforms:if appears to be broken

bsteuhl
I downloaded nightly build several nights ago and ever since xxforms:if does not appear to be working on xforms:action.    An example is:

<xforms:action ev:event="xforms-value-changed" xxforms:if="instance('CQI')/CQI:Patient/CQI:Symptoms/CQI:RefPhysician != 'Y'">
                                                                                                                                <xforms:setvalue ref="instance('CQI')/CQI:Patient/CQI:Symptoms/CQI:NameOfPhysician" value="''" />

                                                                                        </xforms:action>

If data is stored and RefPhysician has value of 'Y' and NameOfPhysician has some value, that value is removed from within the instance as if the condition on xxforms:if was not present.  This was working previously.

Regards,
Brian
Reply | Threaded
Open this post in threaded view
|

Re: xxforms:if appears to be broken

Erik Bruchez
Administrator
This is now fixed:

https://github.com/orbeon/orbeon-forms/issues/684

Note that since XForms 1.1, you can use a plain "if" attribute.

Thanks for reporting.

-Erik

On Sun, Jan 6, 2013 at 11:35 PM, bsteuhl <[hidden email]> wrote:

> I downloaded nightly build several nights ago and ever since xxforms:if does
> not appear to be working on xforms:action.    An example is:
>
> <xforms:action ev:event="xforms-value-changed"
> xxforms:if="instance('CQI')/CQI:Patient/CQI:Symptoms/CQI:RefPhysician !=
> 'Y'">
>                                                                                                                                 <xforms:setvalue
> ref="instance('CQI')/CQI:Patient/CQI:Symptoms/CQI:NameOfPhysician"
> value="''" />
>
>                                                                                         </xforms:action>
>
> If data is stored and RefPhysician has value of 'Y' and NameOfPhysician has
> some value, that value is removed from within the instance as if the
> condition on xxforms:if was not present.  This was working previously.
>
> Regards,
> Brian
>
>
>
> --
> View this message in context: http://orbeon-forms-ops-users.24843.n4.nabble.com/xxforms-if-appears-to-be-broken-tp4656174.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
>


--
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