Skip to main content



      Home
Home » Archived » BIRT » selectively disabling "export to excel" option
selectively disabling "export to excel" option [message #702611] Tue, 26 July 2011 11:21 Go to next message
Eclipse UserFriend
I'm using BIRT 2.6.2.
Is there a way to disable the option to export to excel, but only for SOME reports?
Alternatively, passing a URL parameter indicating if export to excel should be enabled is also a good option.
Re: selectively disabling "export to excel" option [message #702839 is a reply to message #702611] Tue, 26 July 2011 17:52 Go to previous messageGo to next message
Eclipse UserFriend
Look at ExportReportDialogFragment.jsp in the
webcontent/birt/pages/dialog directory of the web viewer.
In this code you can get the report name like:
String rpt = ParameterAccessor.PARAM_REPORT;

You should be able to use this with the if statement:
if ( !ParameterAccessor.PARAM_FORMAT_HTML.equalsIgnoreCase(
supportedFormats[i] ) )

To drop the excel export option.


Jason


On 7/26/2011 11:21 AM, rigimma-467 wrote:
> I'm using BIRT 2.6.2.
> Is there a way to disable the option to export to excel, but only for
> SOME reports?
> Alternatively, passing a URL parameter indicating if export to excel
> should be enabled is also a good option.
Re: selectively disabling "export to excel" option [message #1443809 is a reply to message #702611] Mon, 13 October 2014 04:34 Go to previous messageGo to next message
Eclipse UserFriend
Hello,
I am also searching for a way, to selectively enabling export options in BIRT reports.
Isn´t there a way, you can define this in the report itself?
Maybe using a script?
Re: selectively disabling "export to excel" option [message #1444667 is a reply to message #702839] Tue, 14 October 2014 07:28 Go to previous messageGo to next message
Eclipse UserFriend
Jason Weathersby wrote on Tue, 26 July 2011 21:52
Look at ExportReportDialogFragment.jsp in the
webcontent/birt/pages/dialog directory of the web viewer.
In this code you can get the report name like:
String rpt = ParameterAccessor.PARAM_REPORT;

You should be able to use this with the if statement:
if ( !ParameterAccessor.PARAM_FORMAT_HTML.equalsIgnoreCase(
supportedFormats[i] ) )

To drop the excel export option.
.


I tried to access the report name through ParameterAccessor.PARAM_REPORT but only got the default value "__report".
How can I access the report name or even the report id?
Re: selectively disabling 'export to excel' option [message #1779728 is a reply to message #1444667] Thu, 11 January 2018 16:20 Go to previous message
Eclipse UserFriend
I am also looking for the same to control format options(pdf, xlsx ...) only for some reports.
how can we access the report name or report id in Exportreportdialogfragment.jsp? Please let me know is there any other way.

Thanks,
Srinivas Narra

[Updated on: Thu, 11 January 2018 16:21] by Moderator

Previous Topic:Problem with images export to pdf
Next Topic:in-out reports
Goto Forum:
  


Current Time: Thu Jul 10 01:39:00 EDT 2025

Powered by FUDForum. Page generated in 0.05007 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top