david.eaton Posted March 21, 2014 Share Posted March 21, 2014 I'm using iReportDesigner 5.5.0, and was making a test JRXML. I added a text field with a value of $F{pricing_date} and added "pricing_date" to the list of "fields" on the Report Inspector panel (no properties or description set for the field).The resulting JRXML has the "pricing_date" field defined:<field name="pricing_date" class="java.lang.String"/><field name="pricing_date" class="java.lang.String"/>[/code]And it has a text field with $F{pricing_date} as expected:<textFieldExpression><![CDATA[$F{pricing_date}]]></textFieldExpression><textFieldExpression><![CDATA[$F{pricing_date}]]></textFieldExpression>[/code]But... I get the error "Field not found : pricing_date" within iReport Designer, and I get the same error during compilation.I've compared this to other JRXML files within the samples provided, and it seems to match... what am I missing? Is there a setting somewhere to recognize field definitions? Link to comment Share on other sites More sharing options...
pathfinder2104.work Posted March 21, 2014 Share Posted March 21, 2014 You have multiple queries firing from the same report? ? Link to comment Share on other sites More sharing options...
hozawa Posted March 21, 2014 Share Posted March 21, 2014 Attach your jrxml file. It's difficult to answer your question without it. Link to comment Share on other sites More sharing options...
david.eaton Posted March 21, 2014 Author Share Posted March 21, 2014 Found the issue, I had declared the fields at the root level of the report rather in the specific table I was trying to use them in. Link to comment Share on other sites More sharing options...
hozawa Posted March 22, 2014 Share Posted March 22, 2014 Great that you've found the solution! Wouldn't have thought about that from just looking at your original question. :-) Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now