add: dbforms2_log.log(this.name + '.hasChanged = ' + this.hasChanged()); 
context:     this.saveFormData = function() {        var uri =  this.dataURI;                this.callInternalEventHandlers(DBFORMS2_EVENT_FORM_SAVE_PRE);        this.formData.formName = this.name;        for (fieldID in this.fields) {            field = this.getFieldByID(fieldID);            value = field.getValue();            this.formData.setValueByFieldID(fieldID, value);        }        // set current id        this.formData.setValueByFieldID(this.idField, this.currentID);                // if this is a subform, set the corresponding relation field ...        if(this.parentForm != null) {                        if(this.thatidfield != '' && this.thisidfield == '') {                // relation: 1 -> n                /*                    Gets the current ID from the parent form.                    - if the parent form doesn't have one, a new is generated                    - if the parent form has an insertID set, it is used                */                var parentID = 0;                if(this.parentForm.currentID == 0 && this.parentForm.insertID == 0) {                    parentID = this.parentForm.requestNewId();                } else if(this.parentForm.currentID == 0 && this.parentForm.insertID != 0) {                    parentID = this.parentForm.insertID;                } else {                    parentID = this.parentForm.currentID;                }                                if(parentID != 0 && this.thatidfield != '') {                    this.formData.setValueByFieldID(this.thatidfield, parentID);                } else {                    return false;                }                            } else if(this.thatidfield == '' && this.thisidfield != '') {                // relation: n -> 1                            } else if(this.thatidfield != '' && this.thisidfield != '') {                // relation: n -> m            }                                }                this.saveFocus();        this.disable();        dbforms2.statusText('Saving Data ...');        var wrappedCallback = new ContextFixer(this._dataSavedCallback, this);        this.transport.onSaveCallback = wrappedCallback.execute;		var xml = this.formData.getXML();		        if(this.currentID == 0 && this.insertID != 0) {            xml.documentElement.setAttribute('insertid', this.insertID);        }                this.startTransportTimeout();		this.transport.saveXML(uri, xml);    }
meta: 6621	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6621/9d855873935294e3cf9861035ebb7d088a3ea02c/form.js/clean/webinc/plugins/dbforms2/form.js