Title / Description
Code db.util.readFormInstanceData = function(fi, callback) { // pending // + form master data from TT050 console.log(fi.formindex); db.tables.TT050.all().filter("formindex", "=", fi.formindex).one(null, function(rec) { fi.setStatus(rec.formstatus); fi.date_create = rec.date_create; fi.time_create = rec.time_create; fi.time = rec.time; fi.timeorder = rec.timeorder; }); var data = db.tables.TT051.all().filter("formindex", "=", fi.formindex); data.list(null, function(records) { //console.log(records.length + " data records found for " + // fi.formindex); records.forEach(function(r) { console.log(r.fldid + " [" + r.seqnr + "] " + r.data_char) fi.addData(r.fldid, r.seqnr, r.data_char); }); callback(); }); }
Author
Highlight as C C++ CSS Clojure Delphi ERb Groovy (beta) HAML HTML JSON Java JavaScript PHP Plain text Python Ruby SQL XML YAML diff code