|
@@ -76,8 +76,10 @@ function(queryName){
|
|
|
|
|
|
crfData.getRegistration=
|
|
|
function(){
|
|
|
+ let fName='[getRegistration]';
|
|
|
let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
|
|
|
let query=regQueryPars['query'];
|
|
|
+ this.print(fName+' query '+query);
|
|
|
return this.getQuerySnapshot(query).rows;
|
|
|
}
|
|
|
|
|
@@ -389,11 +391,12 @@ function(cb=null){
|
|
|
|
|
|
crfData.setRegistration=
|
|
|
function(cb=null){
|
|
|
- let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
|
|
|
+ let regQueryPars=variableList.parseVariables(this.setup.getSettings('registrationQuery'));
|
|
|
let q=regQueryPars['query'];
|
|
|
let queryArray=new Array();
|
|
|
let targetObject=this.getSnapshotObject();
|
|
|
- queryArray.push(runQuery.makeQuery(targetObject,'data',q,q,[]));
|
|
|
+ let filters=[];
|
|
|
+ queryArray.push(runQuery.makeQuery(targetObject,'data',q,q,filters));
|
|
|
runQuery.getDataFromQueries(this,queryArray,cb);
|
|
|
}
|
|
|
|