Jump to content
Changes to the Jaspersoft community edition download ×

How to display different values with the same $F{field} name


melanie.masse

Recommended Posts

Hi,
 
I'm using ireport designer 5.6 and I have to insert comments in a report, maybe using the same $F{Field} Name. It's possible? Right now, it's display the same comment. The comments came from a database. Maybe with a loop or something?
 
Went I do my Query in SQL, no problem, i see what I want.... Here, looking for comment and send me 3!!
 
sqlQuery.PNG.345cab75006ba05093eddb12eacd0d1c.PNG
 
But how can I see these in iReport since when I call them, I only see the first one?
 
ireport4.PNG.9841f3e4c2ba852ebe94cb01c65694ce.PNG

I'm sorry if I'm not sure how it's work since I didn't use iReport before and not using a lot much of MySQl since I just restarted newly.
Link to comment
Share on other sites

  • Replies 9
  • Created
  • Last Reply

Top Posters In This Topic

Add another field from table evaluation into report to check the result of execution sql-query
And show jrxml and result of execution.
It is so hard to undestand error (in report? in query? in textfield?) without jrxml...
For instance you wrote that count of record from sql-query=3
But in screen presents only 2 records:
tewlawte
tewlawte

Why?

 

Link to comment
Share on other sites

I'm not sure of what you asking first about add another field, but I put another comment field and formateur field to see :
/sites/default/files/images/previewComments.PNG

The tree in red circle is my comments field result and yellow it's formateur field!!

The end of my  SQL query

/sites/default/files/images/sql(1).PNG

My JRXML where comments are :

/sites/default/files/images/commentJRXML.PNG

 

 

Link to comment
Share on other sites

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