This commit is contained in:
2021-12-28 19:24:23 +00:00
parent 13aaf883ee
commit e7984742a4
4 changed files with 2 additions and 85 deletions

View File

@@ -639,38 +639,6 @@ export default {
PDFTime: window.$gz.locale.utcDateToShortTimeLocalized(nowUtc)
};
},
// ///////////////////////////////////
// // RENDER REPORT DIRECTLY
// //
// //
// async renderReport(objectid, reportid, redirectNotPopup) {
// const reportDataOptions = {
// ReportId: reportid,
// SelectedRowIds: [objectid],
// ClientMeta: this.reportClientMetaData()
// };
// const res = await window.$gz.api.upsert("report/render", reportDataOptions);
// if (res.error) {
// if (redirectNotPopup) {
// return res;
// } else {
// throw new Error(window.$gz.errorHandler.errorToString(res));
// }
// } else {
// const reportUrl = window.$gz.api.reportDownloadUrl(res.data);
// if (redirectNotPopup) {
// //used for direct report open from direct report view url
// window.location.replace(reportUrl);
// } else {
// if (window.open(reportUrl, "Report") == null) {
// throw new Error(
// "Problem displaying report in new window. Browser must allow pop-ups to view reports; check your browser setting"
// );
// }
// }
// }
// },
///////////////////////////////////
// FETCH BIZ OBJECT NAME
//