Jump to content

iReport - Problem by using conditional style


proximus

Recommended Posts

 

Hey,

I tried to use the first time “conditional styles” for my report and get a „field not found“ exception like:

net.sf.jasperreports.engine.design.JRValidationException: Report design not valid:

  1. Field not found: styleFlag

  2. Field not found: styleFlag

    at net.sf.jasperreports.engine.design.JRAbstractCompiler.verifyDesign(JRAbstractCompiler.java:258)

    at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:140)

    at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:498)

    at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572) at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997)

The exception don't make sense. If I use the field “styleFlag”(boolean) in the report I get the true or false value from the data source, but as a condition the value of the test field is not available.

By the way: The condition phrase for the style is ($F{styleFlag}.equals( true ))

Thanks

iReport Designer 3.7.6

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...