This commit is contained in:
@@ -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"
|
||||||
|
|||||||
Reference in New Issue
Block a user