pydyp
03-10-2009, 01:12 AM
<?xml version="1.0" encoding="ISO-8859-1"?>
<canvas title="Hello world" debug="true">
<dataset name="toto">
<root>
<data number="1"/>
<data number="2"/>
<data number="3"/>
<data number="4"/>
<data number="5"/>
</root>
</dataset>
<simplelayout axis="y"/>
<replicator dataset="toto" xpath="/root/data" pool="true">
<view height="22">
<simplelayout axis="x"/>
<edittext datapath="@number"/>
<button text="Delete" onclick="parent.datapath.deleteNode();"/>
</view>
</replicator>
<button text="Serialize" onclick="Debug.write(toto.serialize());"/>
</canvas>
If you try to delete all the lines, 2 lines will always stay "visible" even not in the dataset anymore.
And a simple question: why my button Serialize is before the replicator and not after?
Thanks all
Pierre-Yves DIENST
<canvas title="Hello world" debug="true">
<dataset name="toto">
<root>
<data number="1"/>
<data number="2"/>
<data number="3"/>
<data number="4"/>
<data number="5"/>
</root>
</dataset>
<simplelayout axis="y"/>
<replicator dataset="toto" xpath="/root/data" pool="true">
<view height="22">
<simplelayout axis="x"/>
<edittext datapath="@number"/>
<button text="Delete" onclick="parent.datapath.deleteNode();"/>
</view>
</replicator>
<button text="Serialize" onclick="Debug.write(toto.serialize());"/>
</canvas>
If you try to delete all the lines, 2 lines will always stay "visible" even not in the dataset anymore.
And a simple question: why my button Serialize is before the replicator and not after?
Thanks all
Pierre-Yves DIENST