Setting a value from a model to another

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

Setting a value from a model to another

victor panizza-2
Hello everyone!!!


I have a little question...

I want to copy a value from the model 1 -> instance A -> field X to the model 2 -> instance B -> field Y


how can I copy values from a model to other????

Any Idea Thanks in Advance!!!!!


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Relevant attribute on xforms:submission element

Jack Cox
Relevant attribute on xforms:submission element I’m trying to have XForms submit all the content of a document, even the irrelevant parts.  The Orbeon documentation seems to state that the XForms 1.1 feature of relevant=”false()” is available in Orbeon, but it does not seem to be working when I save a form, non-relevant elements are still being pruned.  What version did this become active?  I’m currently using version: 3.5.1.200703310056

Thanks,

Jack Cox


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Setting a value from a model to another

Hank Ratzesberger
In reply to this post by victor panizza-2
 
If the names of the instances are different between the two models,
then you can use the xxforms:instance() which will search all models
for a matching instance.
 
 
<xforms:setvalue ref="target" value="xxforms:instance('source-inst')/source"/>
 
and hopefully my example code is passable.
 
Regards,
Hank
 
Hank Ratzesberger
http://nees.ucsb.edu/
Institute for Crustal Studies
University of California, Santa Barbara
805.893.8042
805.893.8649 (fax)
 
----- Original Message -----
Sent: Wednesday, July 11, 2007 1:10 PM
Subject: [ops-users] Setting a value from a model to another

Hello everyone!!!


I have a little question...

I want to copy a value from the model 1 -> instance A -> field X to the model 2 -> instance B -> field Y


how can I copy values from a model to other????

Any Idea Thanks in Advance!!!!!


Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.



--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Setting a value from a model to another

victor panizza-2
Thanks a lot Hank!!!!
It works!!!

Hank Ratzesberger <[hidden email]> wrote:
 
If the names of the instances are different between the two models,
then you can use the xxforms:instance() which will search all models
for a matching instance.
 
 
<xforms:setvalue ref="target" value="xxforms:instance('source-inst')/source"/>
 
and hopefully my example code is passable.
 
Regards,
Hank
 
Hank Ratzesberger
http://nees.ucsb.edu/
Institute for Crustal Studies
University of California, Santa Barbara
805.893.8042
805.893.8649 (fax)
 
----- Original Message -----
Sent: Wednesday, July 11, 2007 1:10 PM
Subject: [ops-users] Setting a value from a model to another

Hello everyone!!!


I have a little question...

I want to copy a value from the model 1 -> instance A -> field X to the model 2 -> instance B -> field Y


how can I copy values from a model to other????

Any Idea Thanks in Advance!!!!!

Be a better Heartthrob. Get better relationship answers from someone who knows.
Yahoo! Answers - Check it out.


--
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
ObjectWeb mailing lists service home page: http://www.objectweb.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


Bored stiff? Loosen up...
Download and play hundreds of games for free on Yahoo! Games.

--
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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Relevant attribute on xforms:submission element

Erik Bruchez
Administrator
In reply to this post by Jack Cox
Jack Cox wrote:
> I’m trying to have XForms submit all the content of a document, even the
> irrelevant parts.  The Orbeon documentation seems to state that the
> XForms 1.1 feature of relevant=”false()” is available in Orbeon, but it
> does not seem to be working when I save a form, non-relevant elements
> are still being pruned.  What version did this become active?  I’m
> currently using version: 3.5.1.200703310056

You probably want relevant=”false” instead.

-Erik

--
Orbeon Forms - Web Forms for the Enterprise Done the Right Way
http://www.orbeon.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
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws