Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » selectively disabling "export to excel" option
selectively disabling "export to excel" option [message #702611] Tue, 26 July 2011 15:21 Go to next message
rigimma-467 is currently offline rigimma-467Friend
Messages: 1
Registered: July 2011
Junior Member
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 21:52 Go to previous messageGo to next message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

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 08:34 Go to previous messageGo to next message
Sebastian Dine is currently offline Sebastian DineFriend
Messages: 2
Registered: October 2014
Junior Member
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 11:28 Go to previous messageGo to next message
Sebastian Dine is currently offline Sebastian DineFriend
Messages: 2
Registered: October 2014
Junior Member
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 21:20 Go to previous message
Srinivas Narra is currently offline Srinivas NarraFriend
Messages: 5
Registered: February 2017
Junior Member
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 21:21]

Report message to a moderator

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


Current Time: Fri Mar 29 01:23:41 GMT 2024

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

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

Back to the top