Home | Forums | Contact | Search | Syndication  
 
 [login] [create account]   Friday, November 22, 2024 
 
slxdeveloper.com Community Forums  
   
The Forums on slxdeveloper.com are now retired. The forum archive will remain available for the time being. Thank you for your participation on slxdeveloper.com!
 Web Forums - SalesLogix Web Platform & Application Architect
Forum to discuss the use of the SalesLogix Web Platform, Client and Customer Portals, and the Application Architect (For version 7.2 and higher only). View the code of conduct for posting guidelines.
Forums RSS Feed


 Back to Forum List | Back to SalesLogix Web Platform & Application Architect | New ThreadView:  Search:  
 Author  Thread: Report Format Inquiry - v8.3 Update 06
William Wagner
Posts: 3
 
Report Format Inquiry - v8.3 Update 06Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Sep 17 10:08 AM

When running a report, the last dialogue allows you to select certain formats:


- PDF


- Word


- Excel


- Excel-Data


- CSV


- XML


Is it possible to hide certain formats (Excel, CSV, and XML) so users can only see PDF, Word, and Excel-Data?

[Reply][Quote]
Ryan Farley
Posts: 2265
slxdeveloper.com Site Administrator
Top 10 forum poster: 2265 posts
 
Re: Report Format Inquiry - v8.3 Update 06Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Sep 17 11:33 AM

Quote:
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

[Reply][Quote]
William Wagner
Posts: 3
 
Re: Report Format Inquiry - v8.3 Update 06Your last visit to this thread was on 1/1/1970 12:00:00 AM
Posted: 28 Sep 17 1:44 PM

That worked amazing! Much appreciated!

[Reply][Quote]
 Page 1 of 1 
  You can subscribe to receive a daily forum digest in your user profile. View the site code of conduct for posting guidelines.

   Forum RSS Feed - Subscribe to the forum RSS feed to keep on top of the latest forum activity!
 

 
 slxdeveloper.com is brought to you courtesy of Ryan Farley & Customer FX Corporation.
 This site, and all contents herein, are Copyright © 2024 Customer FX Corporation. The information and opinions expressed here are not endorsed by Sage Software.

code of conduct | Subscribe to the slxdeveloper.com Latest Article RSS feed
   
 
page cache (param): 11/22/2024 3:54:25 AM