I can't seem to get the syntax right on local datasets within class
instances.

I took the example that was posted here a while back and tried to adapt it
to my needs.

Here's what I came up with.  It doesn't work.  Any help would be greatly
appreciated...



<canvas width="1024" height="700" debug="true">
<debug x="25" y="280" width="400" height="25"/>

  <!-- original local dataset example -->
  <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>

  <!-- my attempt at a local dataset -->
  <class name="localdatatest2" width="150" layout="axis:x">
    <dataset src="http://www.eio-online.com/symbols/getterritory";
             name="ds_territory" request="true"/>
    <edittext name="zipcode" height="24" width="${parent.width*.5}"
               oninit="update()" text="08060">
      <method name="update" event="onblur">
      parent.ds_territory.setQueryParam('zipcode', this.getValue());
      parent.ds_territory.doRequest();
      </method>
    </edittext>
    <edittext name="territory" height="24" width="${parent.width*.5}"
              datapath="this.parent.ds_territory:/resultset/result[1]/@terri
tory"/>
  </class>

  <simplelayout axis="y" spacing="5"/>
  <localdatatest2/>
  <localdatatest2/>
  <localdatatest2/>
  <localdatatest2/>

</canvas>

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

Reply via email to