|
@@ -41,6 +41,12 @@ function doNothing(){
|
|
print('doNothing called');
|
|
print('doNothing called');
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+function doFailure(errorInfo){
|
|
|
|
+ print('Error '+errorInfo.exception);
|
|
|
|
+ print('Trace '+errorInfo.stackTrace);
|
|
|
|
+ alert('Failed with '+errorInfo.exception);
|
|
|
|
+}
|
|
|
|
+
|
|
function generateDebugSection(){
|
|
function generateDebugSection(){
|
|
//let debug=true;
|
|
//let debug=true;
|
|
//if (debug) print("generateDebugSection "+sectionName);
|
|
//if (debug) print("generateDebugSection "+sectionName);
|
|
@@ -1614,7 +1620,12 @@ function afterStudyUpload(configUpload,data){
|
|
if (listRows.length>1){
|
|
if (listRows.length>1){
|
|
entry.SequenceNum+=i/100;
|
|
entry.SequenceNum+=i/100;
|
|
}
|
|
}
|
|
- print( "Adding sequence number "+entry.SequenceNum);
|
|
|
|
|
|
+ delete entry.Key;
|
|
|
|
+ print( "Adding sequence number "+entry.SequenceNum + " key " + entry.Key);
|
|
|
|
+ for (q in entry){
|
|
|
|
+ print("\t["+q+"]: "+entry[q]);
|
|
|
|
+ }
|
|
|
|
+ //remove Key as it might interferre with preset values
|
|
rows.push(entry);
|
|
rows.push(entry);
|
|
}
|
|
}
|
|
if (rows.length>0){
|
|
if (rows.length>0){
|
|
@@ -1625,6 +1636,7 @@ function afterStudyUpload(configUpload,data){
|
|
qconfig.containerPath=getContainer('data');
|
|
qconfig.containerPath=getContainer('data');
|
|
qconfig.success=function(data){
|
|
qconfig.success=function(data){
|
|
afterListUpload(configUpload,data)};
|
|
afterListUpload(configUpload,data)};
|
|
|
|
+ qconfig.failure=doFailure;
|
|
qconfig.rows=rows;
|
|
qconfig.rows=rows;
|
|
LABKEY.Query.insertRows(qconfig);
|
|
LABKEY.Query.insertRows(qconfig);
|
|
}
|
|
}
|
|
@@ -2372,7 +2384,7 @@ function setFormConfig(){
|
|
//add object to store form related data
|
|
//add object to store form related data
|
|
config.formConfig=new Object();
|
|
config.formConfig=new Object();
|
|
|
|
|
|
- config.formConfig.softwareVersion='0.12.6';
|
|
|
|
|
|
+ config.formConfig.softwareVersion='0.12.9';
|
|
let debug=true;
|
|
let debug=true;
|
|
|
|
|
|
if (debug)
|
|
if (debug)
|