bmw328i
-
Posts
2 -
Joined
-
Last visited
Content Type
Profiles
Forum
Events
Featured Visualizations
Knowledge Base
Documentation (PDF Downloads)
Blog
Documentation (Test Area)
Documentation
Dr. Jaspersoft Webinar Series
Downloads
Posts posted by bmw328i
-
-
Hi all,
I`m using Jasper Reports for creating printouts in my Spring Boot application. I`m dispalying my persist entity in the report. One of the field is
@DateTimeFormat(iso = ISO.DATE)private LocalDate documentDate;[/code]
I`m displaying this date just simple
<field name="myEntity.documentDate" class="java.lang.String"/>[/code]
<textFieldExpression><![CDATA[$F{myEntity.documentDate}]]></textFieldExpression>[/code]
this works FINE.
Now I`d like to show week number from this date. So, in Jasper XML I created variable like this
<variable name="week_no" class="java.lang.Integer"> <variableExpression><![CDATA[WEEKNUM($F{myEntity.documentDate})]]></variableExpression></variable>[/code]
<textFieldExpression><![CDATA[$V{week_no}]]></textFieldExpression>[/code]
I`m getting net.sf.jasperreports.engine.JRRuntimeException: Function WEEKNUM not found
How to get week number in my case?
Can We embed jasper reports in my web application without using visualize.js?
in Products
Posted
In which technology your app i written?
I`m creating pdf in the browser with Jasper with no js libs....