« Return to Thread: bug: combo box values

Re: Re: Re: Re: Re: Re: Re: bug: combo box values (or "how to add an empty value to a model-bound control" ?)

by Jean Luc :: Rate this Message:

Reply to Author | View in Thread

Yipeee, it worked :) Thanks!
----- Original Message -----
From: "Alessandro Vernet" <avernet@...>
To: "OPS Users" <ops-users@...>
Sent: Wednesday, May 07, 2008 9:14 PM
Subject: [ops-users] Re: Re: Re: Re: Re: Re: bug: combo box values (or "how
to add an empty value to a model-bound control" ?)


> Jean-Luc,
>
> On Tue, May 6, 2008 at 8:30 AM, Jean Luc <jeanluc2008@...> wrote:
>> There are 3 widgets and a combo box in which you select the name of a
>> widget
>> which is bound to instance('local-data')/parent-widget/@name
>> instance('local-data')/parent-widget/@code is a calculated field and
>> should
>> be updated, but it's not - that's visible with the inspector.
>
> This is because of the calculate in the <xforms:bind>. It is evaluated
> in the context of the node pointed by nodeset, so it can't find the
> //widgetList elements, which are in another instance. Instead you need
> to write instance('form-data')//widgetList/...
>
> <xforms:bind nodeset="instance('local-data')/parent-widget/@code"
> readonly="false"
>
> calculate="instance('form-data')//widgetList/widget[name=instance('local-data')/parent-widget/@name]/@code"/>
>
> See your updated example attached.
>
> Alex
> --
> Orbeon Forms - Web 2.0 Forms, open-source, for the Enterprise
> Orbeon's Blog: http://www.orbeon.com/blog/
> Personal Blog: http://avernet.blogspot.com/
> Twitter - http://twitter.com/avernet
>

--------------------------------------------------------------------------------


>
> --
> You receive this message as a subscriber of the ops-users@... mailing
> list.
> To unsubscribe: mailto:ops-users-unsubscribe@...
> For general help: mailto:sympa@...?subject=help
> OW2 mailing lists service home page: http://www.ow2.org/wws
>



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

 « Return to Thread: bug: combo box values