admin管理员组文章数量:1399955
I have been struggling to get my crossTab to group by "Month Year". I read that SimpleDateFormat is outdated. My dataset is using language domain.
The coding is html style and lots of solutions out there are based on object-oriented language with class and constructors. I have the below:
<rowGroup name="InvoicePayment.DateTime_Paid_1" width="120" totalPosition="End">
<bucket class="java.sql.Timestamp">
<bucketExpression><![CDATA[$F{InvoicePayment.DateTime_Paid_1}]]></bucketExpression>
</bucket>
<crosstabRowHeader>
<cellContents mode="Opaque" style="Crosstab_CH">
<textField>
<reportElement x="0" y="0" width="120" height="20" uuid="a1f18861-cce6-4f61-a181-b6566db45c98"/>
<textFieldExpression><![CDATA[$V{InvoicePayment.DateTime_Paid_1}]]></textFieldExpression>
</textField>
</cellContents>
</crosstabRowHeader>
<crosstabTotalRowHeader>
<cellContents mode="Opaque" style="Crosstab_CT"/>
</crosstabTotalRowHeader>
</rowGroup>`
This code new java.text.SimpleDateFormat("MMM YYYY").format($F{InvoicePayment.DateTime_Paid_1}
works in a table, but not in a rowGroup on CrossTab
Even just using table with grouping. Why is it just no examples out there for grouping a TimeStamp field to "Month Year"
本文标签: pivot tableJasper Studio crossTabrowGroup DateTime to quotMonth YearquotStack Overflow
版权声明:本文标题:pivot table - Jasper Studio crossTab, rowGroup DateTime to "Month Year" - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1744232049a2596382.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论