Hi William,

This snippet works for me:

  <class name="localdatatest">
    <dataset/>
    <view datapath="local:classroot:/">
      <simplelayout/>
      <method event="onclick">
        this.datapath.addNode('child', 'Click to remove this node', {});
      </method>
      <text>Click to add a node to my local dataset</text>
<text x="10" datapath="child/text()" onclick="this.datapath.deleteNode();"/>
    </view>
  </class>

  <localdatatest/>
  <localdatatest/>

Regards,
Max Carlson
OpenLaszlo.org

William Krick wrote:
I saw the thread earlier about local datasets but I didn't see anyone say for sure that local datasets work in ver 3.1.1. In my app, I try to create multiple instances of a class that declares a dataset internally that links to a website, and it's not working. I just wanted to make sure that the feature actually works before I pull all my hair out.


------------------------------------------------------------------------

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

_______________________________________________
Laszlo-user mailing list
[email protected]
http://www.openlaszlo.org/mailman/listinfo/laszlo-user

Reply via email to