<DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#000000" LETTERSPACING="0" KERNING="0">For lazy loading, I have to create dataset dynamicly. But I found that destroy() method of dataset does not affect the view which use it as datapath. Event if after destorying the dataset, I created a new one with the same name, it seems that the view still associated with the destroyed old dataset. Try the code below on the laszlo explorer online. Any sugguestions would be much appreciated.</FONT></DIV><FONT FACE="Verdana" SIZE="1" COLOR="#000000" LETTERSPACING="0" KERNING="0"><br><FONT><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&lt;canvas debug=&quot;true&quot;&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;class name=&quot;dset&quot; extends=&quot;dataset&quot;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; request=&quot;true&quot; type=&quot;http&quot;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; src=&quot;getemployees.jsp&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;script&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp; new dset(canvas, {name:'ds'});</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;/script&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;simplelayout axis=&quot;y&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; </FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;view name=&quot;v&quot; datapath=&quot;ds:/phonebook/employee&quot;&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;simplelayout axis=&quot;x&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;text datapath=&quot;firstName/text()&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;text datapath=&quot;lastName/text()&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;text datapath=&quot;phone/text()&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;/view&gt;</FONT></DIV><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0"><br><FONT><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;view name=&quot;bbb&quot; bgcolor=&quot;yellow&quot;&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;simplelayout axis=&quot;x&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;text datapath=&quot;firstName/text()&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;text datapath=&quot;lastName/text()&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;text datapath=&quot;phone/text()&quot;/&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;/view&gt;</FONT></DIV><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0"><br><FONT><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;button&gt;ok</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;method event=&quot;onclick&quot;&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; var dp = ds.getPointer();</FONT></DIV><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0"><br><FONT><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dp.selectChild();</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dp.selectChild();</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.write(dp.serialize());</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dp.deleteNode();</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; dp.deleteNode();</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ds.abort();</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ds.destroy();</FONT></DIV><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0"><br><FONT><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0"><br><FONT><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; new dset(canvas, {name:'ds'});</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Debug.write(ds.serialize());</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; parent.bbb.setDatapath(&quot;ds:/phonebook/employee&quot;);</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; ds.doRequest();</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp;&nbsp;&nbsp; &lt;/method&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&nbsp; &lt;/button&gt;</FONT></DIV><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#333399" LETTERSPACING="0" KERNING="0">&lt;/canvas&gt;</FONT></DIV><FONT FACE="Verdana" SIZE="1" COLOR="#000000" LETTERSPACING="0" KERNING="0"><br><FONT><FONT FACE="Verdana" SIZE="1" COLOR="#000000" LETTERSPACING="0" KERNING="0"><br><FONT><FONT FACE="Verdana" SIZE="1" COLOR="#000000" LETTERSPACING="0" KERNING="0"><br><FONT><DIV ALIGN="LEFT"><FONT FACE="Verdana" SIZE="1" COLOR="#000000" LETTERSPACING="0" KERNING="0">taocore</FONT></DIV>