Jump to content
JasperReports Library 7.0 is now available ×

first groupname is empty


alexpetri

Recommended Posts

Hi have an xml file like this (this is delivered by an external partner):

 

Code:

<report>
<row>
<date>23.01.2006</date>
<valueA>2345</valueA>
</row>
<row>
<date>21.05.2007</date>
<valueA>12345</valueA>
</row>
<row>
<date>23.05.2007</date>
<valueA>22345</valueA>
</row>
<report>

next thing is that i build a report about values and the date. then i wanted to group by month and year.

so i build a varible with the following expression (monthYearGroup):

Code:
[code]new Integer(new String($F{date}.substring(6,10)+$F{date}.substring(3,5)))

so i get the two groups:

200601 and 200705.

The pdf shows 2 groups but the groupheader (monthYearGroup) shows "null" at the first and then it shows "200601" - "200705" is never shown.

Why does jpR show "null" at the first group?

Did i miss something?

Link to comment
Share on other sites

  • 2 weeks later...
  • Replies 1
  • Created
  • Last Reply

Top Posters In This Topic

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