Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <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>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement