hi ilan,
> Is it possible to do a multiple selection on rows generated by a repeat
> structure and then delete those rows with a single click of a delete button?
this is possible, but requires some additional work. I suppose you can't
use the index() function to do this, because there can be only one
*current* item in a repeat that can be addressed using this function.
(if i'm interpreting the XForms specs correctly). So i fear you will
have to manage the selected items and the mechanism to iterate over
those items to delete them yourself.
I think there are two ways to manage the selection: either one writes
the selection state into the data instance itself, or in a external
"control" instance. To finally execute a "multi-delete", one could use
the exforms:iterate (xxforms:iterate) attribute [1] to iterate over the
selected items (i suppose this function is available only in OF 3.7).
This may be easier to implement with a "control instance" than by adding
the selection information to the data instance.
If the xxforms:iterate attribute isn't available (in pre-3.7 versions, i
think), the deletion could be done by a XSLT. Here, it would be easier
to habe the selection data embedded in the data instance, so this
instance can be passed by a submission to a XPL with replace="instance"
that will itself call the XSLT.
[1]
http://www.orbeon.com/ops/doc/reference-xforms-2#exforms-iterateHTH
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