Iets duidelijker onderscheid field en dbfields

svn path=/Website/trunk/; revision=25702
This commit is contained in:
Jos Groot Lipman
2015-07-23 10:56:17 +00:00
parent 530dc713fb
commit 4cff703f4b
8 changed files with 74 additions and 78 deletions

View File

@@ -193,9 +193,9 @@ function model_reportcolumns(usrrap_key, params)
};
this.REST_PUT = function (params, jsondata, the_key) /* update columns */
{
var fields = api2.update_fields(params, this, jsondata); // Build updater
var dbfields = api2.update_fields(params, this, jsondata); // Build updater
var sql = buildUpdate("fac_usrrap_cols", fields) + " fac_usrrap_cols_key = " + the_key;
var sql = buildUpdate("fac_usrrap_cols", dbfields) + " fac_usrrap_cols_key = " + the_key;
var err = Oracle.Execute(sql, true);
if (err.friendlyMsg)
abort_with_warning(err.friendlyMsg);
@@ -205,11 +205,11 @@ function model_reportcolumns(usrrap_key, params)
// Only internally used by report_clone
this._REST_POST = function (params, jsondata, parent_key) /* insert columns */
{
var fields = api2.update_fields(params, this, jsondata); // Build updater
var dbfields = api2.update_fields(params, this, jsondata); // Build updater
fields["id"] = this.fields["id"];
fields["xxx"] = { dbs: "fac_usrrap_key", typ: "key", val: parent_key };
var rapIns = buildInsert("fac_usrrap_cols", fields, { noValidateToken: true });
dbfields["id"] = this.fields["id"];
dbfields["xxx"] = { dbs: "fac_usrrap_key", typ: "key", val: parent_key };
var rapIns = buildInsert("fac_usrrap_cols", dbfields, { noValidateToken: true });
var col_key = rapIns.sequences["fac_usrrap_col_key"];
var err = Oracle.Execute(rapIns.sql, true);