|
@@ -35,11 +35,12 @@ function afterQuery(data,id,queryArray,cb){
|
|
|
//it should be called with id -1.
|
|
|
//
|
|
|
//targetObject.print('afterQuery1['+id+'/'+queryArray.length+']: ');
|
|
|
+ let fName='[afterQuery]';
|
|
|
|
|
|
if (id>-1){
|
|
|
let e1=queryArray[id];
|
|
|
let fieldName=e1.fieldName;
|
|
|
- e1.targetObject.print('afterQuery['+fieldName+']: '+data.rows.length);
|
|
|
+ e1.targetObject.print(fName+' ['+fieldName+']: '+data.rows.length);
|
|
|
e1.targetObject[fieldName]=data;
|
|
|
}
|
|
|
id+=1;
|
|
@@ -54,12 +55,12 @@ function afterQuery(data,id,queryArray,cb){
|
|
|
qconfig.containerPath=e.targetObject.getContainer(e.containerName);
|
|
|
qconfig.schemaName="lists";
|
|
|
if ("schemaName" in e){
|
|
|
- e.targetObject.print('afterQuery: schemaName='+e.schemaName);
|
|
|
+ e.targetObject.print(fName+' schemaName='+e.schemaName);
|
|
|
qconfig.schemaName=e.schemaName;
|
|
|
}
|
|
|
|
|
|
if ("columns" in e){
|
|
|
- e.targetObject.print('afterQuery: columns='+e.columns);
|
|
|
+ e.targetObject.print(fName+' columns='+e.columns);
|
|
|
qconfig.columns=e.columns;
|
|
|
}
|
|
|
qconfig.queryName=e.queryName;
|
|
@@ -71,12 +72,12 @@ function afterQuery(data,id,queryArray,cb){
|
|
|
|
|
|
//qconfig.filterArray=[LABKEY.Filter.create('formStatus',1)]
|
|
|
qconfig.success=function(data){afterQuery(data,id,queryArray,cb);};
|
|
|
- qconfig.failure=function(errorInfo,responseObj){onFailure(e.targetObject,errorInfo,responseObj);};
|
|
|
+ qconfig.failure=function(errorInfo,responseObj){onTAFailure(e.targetObject,errorInfo,responseObj);};
|
|
|
LABKEY.Query.selectRows(qconfig);
|
|
|
|
|
|
}
|
|
|
|
|
|
-function onFailure(targetObj, errorInfo, responseObj){
|
|
|
+function onTAFailure(targetObj, errorInfo, responseObj){
|
|
|
//don't have configObject to rely to
|
|
|
targetObj.print('[afterQuery]: Failure: '+errorInfo.exception);
|
|
|
|