thipperudra
04-07-2004, 04:34 AM
Hi Antun,
<dataset name="dataset" />
<view datapath="dataset:/myimage" >
<button>Delete
<mehod event="onclick">
<![CDATA[
for( var i=1;i<=5;i++)
{
this.parent.datapath.deleteNode();
this.parent.datapath.selectPrev();
}
]]>
</method>
</button>
</view>
This is code sample what i am using now.i created no of view by using LzDatapointer.addNodeFromPointer(dp),but i was deleting all these created view by using above code in lps-1.0.3 and it was working fine.But if i run the same (above) code in lps-2.1.1 just delete latest view and not all.I don't know what is the wrong in this code.Please give any ideas.
Thanks in advance.
-Rudresh
<dataset name="dataset" />
<view datapath="dataset:/myimage" >
<button>Delete
<mehod event="onclick">
<![CDATA[
for( var i=1;i<=5;i++)
{
this.parent.datapath.deleteNode();
this.parent.datapath.selectPrev();
}
]]>
</method>
</button>
</view>
This is code sample what i am using now.i created no of view by using LzDatapointer.addNodeFromPointer(dp),but i was deleting all these created view by using above code in lps-1.0.3 and it was working fine.But if i run the same (above) code in lps-2.1.1 just delete latest view and not all.I don't know what is the wrong in this code.Please give any ideas.
Thanks in advance.
-Rudresh