Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » ReportScripting in BIRT 2.2.1 : Problem with the evaluation of an Expression
ReportScripting in BIRT 2.2.1 : Problem with the evaluation of an Expression [message #490610] Fri, 09 October 2009 12:00 Go to next message
Maghen Calinghee is currently offline Maghen CalingheeFriend
Messages: 23
Registered: July 2009
Junior Member
Hi,

I'm developping reports in BIRT 2.2.1 and i'm using some scripts to customize it. I would like to know how can I do to evaluate a NamedExpression on a Data item.
I know in BIRT 2.3, we can do this with : reportContext.evaluate(this.getNamedExpression("myNamedExpression ")).
But I'm not allowed to upgrade my BIRT for 2.3 version, so how can I evaluate a named expression in BIRT 2.2.1 because the evaluate() method does not exist in that version?

Thanks by advance,

Maghen
Re: ReportScripting in BIRT 2.2.1 : Problem with the evaluation of an Expression [message #490968 is a reply to message #490610] Mon, 12 October 2009 15:45 Go to previous message
Jason Weathersby is currently offline Jason WeathersbyFriend
Messages: 9167
Registered: July 2009
Senior Member

Maghen,

Can you try just eval(this.getNamedExpression("myNamedExpression "));

I do not remember if this works in 2.2 but worth a try.

Jason

Maghen Calinghee wrote:
> Hi,
>
> I'm developping reports in BIRT 2.2.1 and i'm using some scripts to
> customize it. I would like to know how can I do to evaluate a
> NamedExpression on a Data item.
> I know in BIRT 2.3, we can do this with :
> reportContext.evaluate(this.getNamedExpression("myNamedExpression ")).
> But I'm not allowed to upgrade my BIRT for 2.3 version, so how can I
> evaluate a named expression in BIRT 2.2.1 because the evaluate() method
> does not exist in that version?
>
> Thanks by advance,
>
> Maghen
Previous Topic:Problem with syntax trying to pass parameter to Java Object
Next Topic:Error after creating the second report
Goto Forum:
  


Current Time: Sat May 11 03:56:04 GMT 2024

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

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

Back to the top