Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » 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
rigimma-467 is currently offline rigimma-467
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 17:52 Go to previous message
Jason Weathersby is currently offline Jason Weathersby
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.
Previous Topic:using UI libraries in custom parameter page
Next Topic:Using BIRT APIs
Goto Forum:
  


Current Time: Fri Aug 22 06:04:15 EDT 2014

Powered by FUDForum. Page generated in 0.01932 seconds