update multiple models

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

update multiple models

Bart Ottenkamp
Hello everybody,

I'm wondering whether there is a way to update nodes in different models at the same time.
What I'm actually meaning is that I refer (with an inputText for instance) to a node in model1 and if the user changes something, this value should be updated in the referenced node in model1, but also in a node in model2...
So, is there a possibility to hook-up nodes? And then; even over different models....

Best regards,
Bart 


--
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
Reply | Threaded
Open this post in threaded view
|

Re: update multiple models

Alessandro Vernet
Administrator
Bart,

On Thu, Oct 8, 2009 at 3:36 AM, Bart Ottenkamp <[hidden email]> wrote:
> I'm wondering whether there is a way to update nodes in different models at
> the same time.
> What I'm actually meaning is that I refer (with an inputText for instance)
> to a node in model1 and if the user changes something, this value should be
> updated in the referenced node in model1, but also in a node in model2...
> So, is there a possibility to hook-up nodes? And then; even over different
> models....

If you know your code is always updating the instance in model1, you
could have in model2 a <xforms:bind calculate="..."/> that copies over
a values from an instance in model1 from an instance in model2. To
access an instance in another mode, use
xxforms:instance('my-instance-id').

Alex
--
Orbeon Forms - Web forms, open-source, for the Enterprise
Orbeon's Blog: http://www.orbeon.com/blog/
My Twitter: http://twitter.com/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