Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Test for running inside the Report Designer
Test for running inside the Report Designer [message #368450] Fri, 29 May 2009 17:21 Go to next message
Mitch Christensen is currently offline Mitch ChristensenFriend
Messages: 35
Registered: July 2009
Member
I've got a Data Set with a beforeOpen() handler that contains code that
can only be evaluated when run in a production environment. This causes
problems inside the report designer.

Is there an easy way to test whether the report is running inside the
report designer (as opposed to production)?

Thanks.
Mitch Christensen
Re: Test for running inside the Report Designer [message #368462 is a reply to message #368450] Mon, 01 June 2009 15:39 Go to previous message
Eclipse UserFriend
Originally posted by: jasonweathersby.windstream.net

Mitch,

Can you wrap your code in something like this?
xyz =
reportContext.getHttpServletRequest().getAttribute("attributeBean ").isDesigner();
if( xyz==true ){
//in designer put dummy code here
}else{
//in production
}

Jason


Mitch Christensen wrote:
> I've got a Data Set with a beforeOpen() handler that contains code that
> can only be evaluated when run in a production environment. This causes
> problems inside the report designer.
>
> Is there an easy way to test whether the report is running inside the
> report designer (as opposed to production)?
>
> Thanks.
> Mitch Christensen
>
Previous Topic:Page Level Security
Next Topic:Nested XML
Goto Forum:
  


Current Time: Fri Apr 26 23:47:39 GMT 2024

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

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

Back to the top