Jump to content
JasperReports Library 7.0 is now available ×

Problem with char '&' in expression


ktrinad

Recommended Posts

By: Ken Feng - blincokf

Problem with char '&' in expression

2003-01-15 06:53

Hi,

When XML entity char (such as &) appears in expression, compilation would fail with a SAXParseException unless

I replace the char '&' with '&'.

For example:

<variableExpression>($F{AMT}.floatValue()<;=0&&;$F{PDATE}.before($P{PDATE1}))?($F{AMT}):(null)</variableExpression>

should be:

<variableExpression>($F{AMT}.floatValue()<=0&&$F{PDATE}.before($P{PDATE1}))?($F{AMT}):(null)</variableExpression>

However when I exit and re-enter IReport, the '&' would be replaced by '&' and thus compile fails again.

Is it a bug? or are there ways to avoid using XML entity char in expression? Please advise.

 

BTW although I am just recently introduced to IReport, I really like it. Great job.

 

 

 

 

By: Giulio Toffoli - gt78

RE: Problem with char '&' in expression

2003-01-16 00:46

try to use 0.0.7p1

 

Giulio

Link to comment
Share on other sites

  • Replies 0
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...