methods.lzx

<library>
	<method name="handleError">
		Debug.write((new Date())+": Request got an error -- sorry.");
	</method>

        <method name="userLogin" args="username,password">
                var ds=canvas.datasets.loginDS;
                var p=new LzParam();
                if (username == undefined) {
                username = "";
                }
                if (password == undefined) {
                password = "";
                }
                p.addValue("username", username,true);
                p.addValue("password", password,true);
                ds.setQueryString(p);
                ds.doRequest();
        </method>

        <method name="getData">
                var ds=canvas.datasets.pendingDS;
                var p=new LzParam();
                p.addValue("sid", canvas.sid,true);
                ds.setQueryString(p);
                ds.doRequest();
        </method>

	<method name="pendingUpdate" args="id, cardnr">
                var ds=canvas.datasets.pendingDS;
                var p=new LzParam();
                p.addValue("sid", canvas.sid,true);
                p.addValue("id", id,true);
                p.addValue("cardnr", cardnr,true);
                ds.setQueryString(p);
                ds.doRequest();
		canvas.requestSim(id, cardnr);
	</method>
	
	<method name="pendingDelete" args="id, cardnr">
                var ds=canvas.datasets.pendingDS;
                var p=new LzParam();
                p.addValue("sid", canvas.sid,true);
		if (cardnr == "NULL") {
			p.addValue("id", id,true);
			p.addValue("cardnr", "deleted",true);
		}
                ds.setQueryString(p);
                ds.doRequest();
	</method>

        <method name="requestSim" args="id, nr">
                var ds=canvas.datasets.requestsimDS;
                var p=new LzParam();
                p.addValue("sid", canvas.sid,true);
                p.addValue("nr", nr,true);
                p.addValue("id", id,true);
                ds.setQueryString(p);
                ds.doRequest();
        </method>

        <method name="checkGridData">
        
                loadinginfo.addText("###");
                Debug.write("checkGridData");
        
        </method>
</library>

Cross References

Named Instances