that.attributes = {}; that.attnamarray = new Array(); that.arrayindex = 0; for (var ai in this.query.instance) { if (typeof(that.query.instance[ai])!='function' && (!aux.endsWith(that.query.instance[ai],"_DESC"))) { that.attributes[ai] = that.query.instance[ai]; that.attnamarray.push(ai); } else { console.log("attribute "+ai+" not copied for save"} } console.log(that.attributes.length+" attributes to write");