Browse Source

debuging starting form

Eager Beaver 5 years ago
parent
commit
03c62624f4
1 changed files with 10 additions and 1 deletions
  1. 10 1
      web/tecant/crfPortal.js

+ 10 - 1
web/tecant/crfPortal.js

@@ -637,6 +637,9 @@ function addNewEntry(par){
 
 
 function startForm(par){
+	let debug=true;
+	if (debug)
+		print(par.config,"startForm");
 	let crfVar=par.vars["Crf"];
 	let el=par.config.document.getElementById(crfVar.selectId);
 	let config=generateQConfig(par.masterQuery);
@@ -647,6 +650,9 @@ function startForm(par){
 }
 
 function findURL(data,par){
+	let debug=true;
+	if (debug)
+		print(par.config,"findURL");
 	let entry=data.rows[0];
 	
 	let fields=data.metaData.fields;
@@ -666,6 +672,9 @@ function findURL(data,par){
 }
 
 function finalRedirect(data,entry,par){
+	let debug=true;
+	if (debug)
+		print(par.config,"final redirect");
 	let formEntry=data.rows[0];
 	let formVar=par.vars["Form"];
 	let formUrl=formEntry[formVar.urlName];
@@ -679,7 +688,7 @@ function finalRedirect(data,entry,par){
         // This changes the page after building the URL. 
 	//Note that the wiki page destination name is set in params.
         var wikiURL = LABKEY.ActionURL.buildURL("wiki", "page", containerPath, params);
-        print("Redirecting to "+wikiURL);
+        print(par.config,"Redirecting to "+wikiURL);
 		 
 	window.location = wikiURL;
 }