datasets.lzx
<library>
<dataset name="creditlist">
<item><amount>100</amount><description>100 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/loginwhs.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();
} else {
failedlogin.setAttribute('visible',false);
weepeeinit.setAttribute('visible',false);
canvas.logindialog.close();
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"/>
<handler name="ondata" args="ds" reference="sipaccountsDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
</handler>
<handler name="ontimeout" args="ds" reference="sipaccountsDS">
Debug.write((new Date())+": " + ds + " Request timed out -- sorry.");
</handler>
<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"/>
<handler name="ondata" args="ds" reference="faxaccountsDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
</handler>
<handler name="ontimeout" args="ds" reference="faxaccountsDS">
Debug.write((new Date())+": " + ds + " Request timed out -- sorry.");
</handler>
<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"/>
<handler name="ondata" args="ds" reference="fwdaccountsDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
</handler>
<handler name="ontimeout" args="ds" reference="fwdaccountsDS">
Debug.write((new Date())+": " + ds + " Request timed out -- sorry.");
</handler>
<datapointer xpath="fwdaccountsDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
canvas.searchingfwd.close();
</handler>
</datapointer>
<dataset name="postalcodesDS" src="http://vapi0.weepee.org/api/resellerdata/postalcodes.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<handler name="ondata" args="ds" reference="postalcodesDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
city.selectItemAt(0);
</handler>
<handler name="ontimeout" args="ds" reference="postalcodesDS">
Debug.write((new Date())+": " + ds + " Request timed out -- sorry.");
</handler>
<datapointer xpath="postalcodesDS:/dbdata">
<handler name="ondata">
loadinginfo.addText("###");
</handler>
</datapointer>
<dataset name="numbersDS" src="http://vapi0.weepee.org/api/resellerdata/numbers.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<handler name="ondata" args="ds" reference="numbersDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
</handler>
<handler name="ontimeout" args="ds" reference="numbersDS">
Debug.write((new Date())+": " + ds + " Request timed out -- sorry.");
</handler>
<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"/>
<handler name="ondata" args="ds" reference="servicenumbersDS">
Debug.write((new Date())+": " + ds + " Request succeeded.");
</handler>
<handler name="ontimeout" args="ds" reference="servicenumbersDS">
Debug.write((new Date())+": " + ds + " Request timed out -- sorry.");
</handler>
<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/createaccountwhs.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="addnumberscreenedDS" src="http://vapi0.weepee.org/api/resellerdata/addnumberscreened.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="addnumberscreenedDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.addnumberscreenedDS;
var dp = ds.getPointer();
dp.setXPath("addnumberscreenedDS:/dbdata/data/resulttext/text()");
var resulttext = dp.getNodeText();
Debug.write(resulttext);
addnumberscreeneddata.setAttribute("text",resulttext);
</handler>
</datapointer>
<dataset name="addnumberDS" src="http://vapi0.weepee.org/api/resellerdata/addnumber.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="addnumberDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.addnumberDS;
var dp = ds.getPointer();
dp.setXPath("addnumberDS:/dbdata/data/resulttext/text()");
var resulttext = dp.getNodeText();
Debug.write(resulttext);
addnumberdata.setAttribute("text",resulttext);
</handler>
</datapointer>
<dataset name="delnumberDS" src="http://vapi0.weepee.org/api/resellerdata/delnumber.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="delnumberDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.delnumberDS;
var dp = ds.getPointer();
dp.setXPath("delnumberDS:/dbdata/data/resulttext/text()");
var resulttext = dp.getNodeText();
Debug.write(resulttext);
delnumberdata.setAttribute("text",resulttext);
</handler>
</datapointer>
<dataset name="delaccountDS" src="http://vapi0.weepee.org/api/resellerdata/delaccount.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="delaccountDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.delaccountDS;
var dp = ds.getPointer();
dp.setXPath("delaccountDS:/dbdata/data/resulttext/text()");
var resulttext = dp.getNodeText();
Debug.write(resulttext);
delaccountdata.setAttribute("text",resulttext);
</handler>
</datapointer>
<dataset name="undelaccountDS" src="http://vapi0.weepee.org/api/resellerdata/undelaccount.php" request="false" onerror="canvas.handleError()" querytype="POST"/>
<datapointer xpath="undelaccountDS:/dbdata">
<handler name="ondata">
var ds=canvas.datasets.undelaccountDS;
var dp = ds.getPointer();
dp.setXPath("undelaccountDS:/dbdata/data/resulttext/text()");
var resulttext = dp.getNodeText();
Debug.write(resulttext);
undelaccountdata.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