rpc-$17.lzx
<canvas debug="true" height="300" width="100%">
<dataset name="myDataset">
<region name="Region-A"/>
<region name="Region-B"/>
<region name="Region-C"/>
</dataset>
<soap name="placefinder" wsdl="http://arcweb.esri.com/services/v2/PlaceFinderSample.wsdl">
<attribute name="myDel" value="$once{new LzDelegate(this, 'handler')}"/>
<method name="handler" args="ret">
Debug.debug('ret: %w', ret);
if (ret.status == 'ok') {
Debug.debug('myDataset childNodes: %w', myDataset.childNodes);
}
</method>
<handler name="onload">
Debug.debug('placefinder soap service stub loaded');
myView.setAttribute('visible', true);
this.proxy.getTypes([], this.myDel);
</handler>
</soap>
<view name="myView" datapath="myDataset:/" x="10" visible="false">
<simplelayout spacing="2" inset="10"/>
<view datapath="region" layout="spacing: 5">
<attribute name="text" value="$path{'@name'}" type="string"/>
<text name="t" text="${parent.text + ' (click me)'}" resize="true"/>
<method name="gotData">
this.setAttribute('clickable', false);
this.t.setAttribute("text", this.text);
</method>
<handler name="onclick">
if (text == "Region-A") {
this.regions.setAttribute("datapath", "element/i[1-6]");
} else if (text == "Region-B") {
this.regions.setAttribute("datapath", "element/i[7-12]");
} else {
this.regions.setAttribute("datapath", "element/i[12-]");
}
var myDel = new LzDelegate(this, "gotData");
myDel.dataobject = this.datapath.p;
placefinder.proxy.getTypes([], myDel);
</handler>
<view name="regions" x="10">
<text datapath="key/text()" resize="true"/>
<text x="20" datapath="value/text()" resize="true"/>
</view>
</view>
</view>
</canvas>
Cross References
Named Instances