|
@@ -17,7 +17,7 @@ function insertRows(rows){
|
|
|
iRows.schemaName=this.schemaName;
|
|
|
iRows.queryName=this.queryName;
|
|
|
iRows.rows=rows;
|
|
|
- iRows.success=function(){gObj.doNothing();};
|
|
|
+ iRows.success=function(data){gObj.callback(data);};
|
|
|
LABKEY.Query.insertRows(iRows);
|
|
|
}
|
|
|
|
|
@@ -43,6 +43,11 @@ function generateObjectAtKey(k){
|
|
|
let row=new Object();
|
|
|
row['Key']=k;
|
|
|
row[this.codeField]=regCode;
|
|
|
+ if ("addData" in this){
|
|
|
+ for (let q in this.addData){
|
|
|
+ row[q]=this.addData[q];
|
|
|
+ }
|
|
|
+ }
|
|
|
return row;
|
|
|
}
|
|
|
|
|
@@ -65,7 +70,8 @@ function generateId(data){
|
|
|
this.insertRows(rows);
|
|
|
}
|
|
|
|
|
|
-function doNothing(data){
|
|
|
+function doNothing1(data){
|
|
|
+ this.config.print(this.fName+": doNothing() called");
|
|
|
}
|
|
|
|
|
|
function fail(errorInfo){
|
|
@@ -119,6 +125,8 @@ function getGenerationObject(config,qPar,outputId){
|
|
|
gObj.inspect=inspect;
|
|
|
gObj.fName="[generateRegistration]";
|
|
|
gObj.fail=fail;
|
|
|
+ gObj.doNothing1=doNothing1;
|
|
|
+ gObj.callback=gObj.doNothing1;
|
|
|
//should set codeBase and elementId after initialization
|
|
|
return gObj;
|
|
|
}
|