datasets.lzx
<library>
<dataset name="creditlist">
<item><amount>150</amount><description>150 euro</description></item>
<item><amount>250</amount><description>250 euro</description></item>
<item><amount>500</amount><description>500 euro</description></item>
<item><amount>1000</amount><description>1000 euro</description></item>
<item><amount>1500</amount><description>1500 euro</description></item>
<item><amount>2000</amount><description>2000 euro</description></item>
</dataset>
<dataset name="loginDS" src="http://vapi0.weepee.org/api/resellerdata/login.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer id="myDpLogin" xpath="loginDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.loginDS;
Debug.write("Loaded Login XML data");
var dp = ds.getPointer();
dp.setXPath("loginDS:/dbdata/data/webpasswd/text()");
var resellerPassword = dp.getNodeText();
dp.setXPath("loginDS:/dbdata/data/sid/text()");
canvas.sid = dp.getNodeText();
if (!resellerPassword) {
failedlogin.completeInstantiation();
canvas.logindialog.open();
} else {
failedlogin.setAttribute('visible',false);
weepeeinit.setAttribute('visible',false);
loading.completeInstantiation();
loading.setAttribute('visible',true);
canvas.getResellerData();
}
</handler>
</datapointer>
<dataset name="changepwdDS" src="http://vapi0.weepee.org/api/resellerdata/changepwd.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="changepwdDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.changepwdDS;
var dp = ds.getPointer();
dp.setXPath("changepwdDS:/dbdata/data/changepwddata/text()");
var newchangepwddata = dp.getNodeText();
dp.setXPath("changepwdDS:/dbdata/data/windowstate/text()");
var windowstate = dp.getNodeText();
changepwddata.setAttribute("text",newchangepwddata);
if (windowstate == "close") {
changepwddialog.close();
}
</handler>
</datapointer>
<dataset name="sipaccountsDS" src="http://vapi0.weepee.org/api/resellerdata/sipaccounts.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="sipaccountsDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingsip.close();
</handler>
</datapointer>
<dataset name="faxaccountsDS" src="http://vapi0.weepee.org/api/resellerdata/faxaccounts.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="faxaccountsDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingfax.close();
</handler>
</datapointer>
<dataset name="fwdaccountsDS" src="http://vapi0.weepee.org/api/resellerdata/fwdaccounts.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="fwdaccountsDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingfwd.close();
</handler>
</datapointer>
<dataset name="proaccountsDS" src="http://vapi0.weepee.org/api/resellerdata/proaccounts.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="proaccountsDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingpro.close();
</handler>
</datapointer>
<dataset name="postalcodesproDS" src="http://vapi0.weepee.org/api/resellerdata/postalcodes.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="postalcodesproDS:/dbdata">
<handler name="ondata">
procity.selectItemAt(0);
</handler>
</datapointer>
<dataset name="postalcodesDS" src="http://vapi0.weepee.org/api/resellerdata/postalcodes.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="postalcodesDS:/dbdata">
<handler name="ondata">
city.selectItemAt(0);
</handler>
</datapointer>
<dataset name="kbosearchDS" src="http://vapi0.weepee.org/api/resellerdata/kbosearch.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<handler name="ondata" args="ds" reference="kbosearchDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
var ds=canvas.datasets.kbosearchDS;
var dp = ds.getPointer();
dp.setXPath("kbosearchDS:/dbdata/data/vatnr/text()");
var vatnr = dp.getNodeText();
dp.setXPath("kbosearchDS:/dbdata/data/name/text()");
var name = dp.getNodeText();
dp.setXPath("kbosearchDS:/dbdata/data/street/text()");
var street = dp.getNodeText();
dp.setXPath("kbosearchDS:/dbdata/data/postalcode/text()");
var postalcode = dp.getNodeText();
Debug.write(vatnr);
if (vatnr != "") {
vat.setAttribute("text",vatnr);
}
prostreet.setAttribute("text",street);
company.setAttribute("text",name);
prosearchpostalcode.setAttribute("text",postalcode);
searchPostalcodespro(postalcode);
canvas.searchingvies.close();
</handler>
<dataset name="numbersDS" src="http://vapi0.weepee.org/api/resellerdata/numbers.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="numbersDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingnumbers.close();
</handler>
</datapointer>
<dataset name="servicenumbersDS" src="http://vapi0.weepee.org/api/resellerdata/servicenumbers.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="servicenumbersDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingservicenumbers.close();
</handler>
</datapointer>
<dataset name="codecbwDS" src="http://vapi0.weepee.org/api/publicdata/codecbw.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="codecbwDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
Debug.write("Loaded Reseller XML data");
</handler>
</datapointer>
<dataset name="createaccountDS" src="http://vapi0.weepee.org/api/resellerdata/createaccount.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="createaccountDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.createaccountDS;
var dp = ds.getPointer();
dp.setXPath("createaccountDS:/dbdata/data/accountdata/text()");
var newaccountdata = dp.getNodeText();
Debug.write(newaccountdata);
accountdata.setAttribute("text",newaccountdata);
</handler>
</datapointer>
<dataset name="createproaccountDS" src="http://vapi0.weepee.org/api/resellerdata/createproaccount.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="createproaccountDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.createproaccountDS;
var dp=ds.getPointer();
dp.setXPath("createproaccountDS:/dbdata/data/accountdata/text()");
var newaccountdata = dp.getNodeText();
Debug.write(newaccountdata);
proaccountdata.setAttribute("text",newaccountdata);
</handler>
</datapointer>
<dataset name="addtoproaccountDS" src="http://vapi0.weepee.org/api/resellerdata/addtoproaccount.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="addtoproaccountDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.addtoproaccountDS;
var dp = ds.getPointer();
dp.setXPath("addtoproaccountDS:/dbdata/data/resulttext/text()");
var resulttext = dp.getNodeText();
Debug.write(resulttext);
addproaccountdata.setAttribute("text",resulttext);
</handler>
</datapointer>
<dataset name="weepeeDS" src="http://vapi0.weepee.org/api/weepee.php" request="false" type="http"/>
<datapointer id="myDpInit" xpath="weepeeDS:/weepee">
<handler name="ondata">
Debug.write("Loaded Default XML data");
loading.setAttribute('visible',false);
canvas.logindialog.open();
</handler>
</datapointer>
</library>
Cross References
Named Instances