Quick stab - i didnt check to be 100% sure - is there a .clones
property on the LzReplicationManager? these would be the replicated
nodes when there is more then one match to the xpath query.
On Dec 13, 2007, at 6:47 PM, petergien wrote:
I have been following the example in Chapter 35 "Building Data Driven
Applications" (OL 3.4)
It simply replicates some text views in a list. The example shows
how to
place a delete button next to each replicated view which deletes the
replicated view. So far so good.
<button width="80" x="200" y="40">Delete
<!-- 2b -->
<handler name="onclick">
parent.parent.datapath.deleteNode();
</handler>
</button>
My problems arise when I try to use a button to delete all the
replicated
views at once. In other words, the new button is not part of the
replicated
view. I get a nodeCount of zero when I look at the parent view and
the
datapath resolves to an lzReplicationManager. How do I manipulate the
underlying nodes to delete the replicated views?
Thanks,
Peter
--
View this message in context:
http://www.nabble.com/deleting-nodes-in-Javascript-t