Originally posted by William Wagner Is it possible to hide certain formats (Excel, CSV, and XML) so users can only see PDF, Word, and Excel-Data? |
|
Hi William,
Yes. Open the core.master file under SupportFiles\Masters in the SlxClient portal in AA. Scroll to the very bottom and add the following before the end /body tag:
<script type="text/javascript"> require(['dojo/_base/lang', 'Sage/Reporting/Enumerations', 'Sage/MainView/ReportMgr/ReportManagerUtility'], function(lang, Enumerations, ReportManagerUtility) { lang.mixin(ReportManagerUtility, { getOutputFormats: function (reportType) { switch (reportType) { case Enumerations.ReportTypes.CrystalReport: return [ { outputFormat: Enumerations.ReportExportFormat.Pdf, caption: Enumerations.nlsResources.txtPdf }, { outputFormat: Enumerations.ReportExportFormat.Word, caption: Enumerations.nlsResources.txtWord }, { outputFormat: Enumerations.ReportExportFormat.ExcelDataOnly, caption: Enumerations.nlsResources.txtExcelDataOnly } ]; default: console.error("Unsupported report type: " + reportType); return []; } } }); }); </script>
Complete code also posted here in case it gets messed up in this post https://pastebin.com/AVm30UeM |