this._clearDels(); this.dataset = dset; if (dset == null) { return; } this._dataDel = new LzDelegate(this, "_recvdata", this.dataset, "ondata"); this._errorDel = new LzDelegate(this, "_recverror", this.dataset, "onerror"); this._timeoutDel = new LzDelegate(this, "_recvtimeout", this.dataset, "ontimeout"); if ($debug) Debug.deprecated(this, arguments.callee, this.setAttribute); this.setAttribute("dataset", dset); this.setAttribute('status', 'ok'); this.setAttribute('error', ''); if ($debug) Debug.error('form submission error: %s', this.dataset); this.setAttribute('status', 'error'); this.setAttribute('error', this.dataset.getErrorString()); if ($debug) Debug.error('form submission timeout'); this.setAttribute('status', 'timeout'); this.setAttribute('error', this.dataset.getErrorString()); if (this._dataDel) { this._dataDel.unregisterAll(); this._dataDel = null; } if (this._errorDel) { this._errorDel.unregisterAll(); this._errorDel = null; } if (this._timeoutDel) { this._timeoutDel.unregisterAll(); this._timeoutDel = null; } associates a form with a dataset

Used with form or baseform, the submit tag associates the form with its dataset. See form tag for example code.

form baseform dataset