« Return to Thread: Is it possible to use if in xforms:delete???

Re: Is it possible to use if in xforms:delete???

by fs(ops-users) :: Rate this Message:

Reply to Author | View in Thread

Hi sathish,

> <xforms:delete ev:event="DOMActivate" context="instance('main')"
> nodeset="employee" if="instance('main')/employee/select='true'"/>

> true value for select is assigned when i select a particular check box.I
> have written xforms:delete as shown above.but it always deleting the
> last element in the instance when a checkbox is selected.

you could try to use the new exforms:iterate attribute to iterate over
the selected elements:

http://www.orbeon.com/ops/doc/reference-xforms-2#exforms-iterate

But for this solution, you will have to use a nightly build, i suppose.

Maybe another solution could work: you could specify the nodeset more
precisely by adding a predicate: nodeset="employee[/select='true'". But
i didn't test that.


HTH
florian



--
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: Is it possible to use if in xforms:delete???