This commit is contained in:
2021-12-27 20:51:38 +00:00
parent 5fda6c261a
commit 78a8758d11

View File

@@ -152,7 +152,7 @@ export default {
//Meta data from client for use by report script //Meta data from client for use by report script
reportDataOptions.ClientMeta = window.$gz.api.reportClientMetaData(); reportDataOptions.ClientMeta = window.$gz.api.reportClientMetaData();
this.rendering = true; this.rendering = true;
const reportUrl = null; var reportUrl = null;
try { try {
let jobId = await window.$gz.api.upsert( let jobId = await window.$gz.api.upsert(
"report/render-job", "report/render-job",
@@ -196,7 +196,7 @@ export default {
console.log("Parsing:", v); console.log("Parsing:", v);
const o = JSON.parse(v); const o = JSON.parse(v);
reportUrl = window.$gz.api.reportDownloadUrl( reportUrl = window.$gz.api.reportDownloadUrl(
o.reportFileName o.reportfilename
); );
} }
} }
@@ -225,6 +225,7 @@ export default {
} }
//job ran to completion, get the report file name and fetch it //job ran to completion, get the report file name and fetch it
if (reportUrl) { if (reportUrl) {
console.log("Attempting to open report url:", reportUrl);
if (window.open(reportUrl, "Report") == null) { if (window.open(reportUrl, "Report") == null) {
this.reject( this.reject(
"Problem displaying report in new window. Browser must allow pop-ups to view reports; check your browser setting" "Problem displaying report in new window. Browser must allow pop-ups to view reports; check your browser setting"