Re: xforms:repeat problem in xforms:setvalue.
Posted by
fl.schmitt(ops-users) on
URL: https://discuss.orbeon.com/xforms-repeat-problem-in-xforms-setvalue-tp1574854p1575054.html
Hi Laxmi,
> I have multiple *title* nodes in *template-instance.* If I use
> *xforms:repeat* to set all *title* nodes to *dummy* node which is
> availble in *main-instance* on click of submit button*,* It is not
> setting anyof the *title* node values*.*
>
> If I use xsl:for-each instead of xforms:repeat , It is working fine but
> I can't use template-instance in *xsl:for-each.*
> **
> Please help me how to set all *title* nodes from *template-instance
> *to* dummy* node in *main-instance* on click of submit button?
so if i understand correctly, you want to iterate over the title nodes
of the template instance and set their value to the value of
instance('main-instance')//dummy? I think the xxforms:iterate attribute
can be helpful here:
http://www.orbeon.com/orbeon/doc/reference-xforms-extensions#exforms-iterate<xforms:action ev:event="DOMActivate"
xxforms:iterate="instance('template-instance')/record/title">
<xforms:setvalue ref="context()"
value="instance('main-instance')/dummy"/>
</xforms:action>
HTH
florian
--
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