Yes, I can see the replication manager and the list of clones. If I delete a
clone will it also delete the node in the underlying XML? I don't think so.
I wish I could just work with a datapointer, delete the data nodes and have
the views update themselves.

-P

jamesr-2 wrote:
> 
> 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
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/deleting-nodes-in-Javascript-tp14329131p14354766.html
Sent from the OpenLaszlo - User mailing list archive at Nabble.com.

Reply via email to