JasperReport can manipulate some views in depend from calculated data through report expression mechanism. But report expression has restriction - it must one-string code. So, you can't perform more complex functionality e.g. string manipulation. For such cases JasperReports provides scriptlets. Scriptlets - it java code which executed every time when report request.
Below I explain how obtain such result:
Below I explain how obtain such result:
Picture 1: Obtain data through scriplet. |