This commit is contained in:
@@ -152,7 +152,7 @@ export default {
|
||||
//Meta data from client for use by report script
|
||||
reportDataOptions.ClientMeta = window.$gz.api.reportClientMetaData();
|
||||
this.rendering = true;
|
||||
const reportUrl = null;
|
||||
var reportUrl = null;
|
||||
try {
|
||||
let jobId = await window.$gz.api.upsert(
|
||||
"report/render-job",
|
||||
@@ -196,7 +196,7 @@ export default {
|
||||
console.log("Parsing:", v);
|
||||
const o = JSON.parse(v);
|
||||
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
|
||||
if (reportUrl) {
|
||||
console.log("Attempting to open report url:", reportUrl);
|
||||
if (window.open(reportUrl, "Report") == null) {
|
||||
this.reject(
|
||||
"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