August 2003
Beginner to intermediate
240 pages
7h 44m
English
delete
This action is the counterpart of insert—it
removes nodes from the instance data. Without the issues of copying
nodes from a template, the overall operation of this element is much
simpler.
This element also has an attribute named
at, which operates
the same way as insert. It identifies an element
node that is removed, along with any associated nodes (content text
nodes, child element nodes, attribute nodes, and so on). The
corresponding user interface for the repeat will also adjust to the
now smaller repeat set.
This example continues the example in the previous section:
<trigger>
<label>Remove current item</label>
<delete ev:event="activate" nodeset="/order/items/item"
at="index('repeat_id')"/>
</trigger>Read now
Unlock full access