Jump to content
We've recently updated our Privacy Statement, available here ×

JRFerreira

Members
  • Posts

    8
  • Joined

  • Last visited

JRFerreira's Achievements

  1. Hi there, How can i populate rows of a table with values from a ArrayList? Meaning, my source is an ArrayList and if i put the field directly on the cell table, populates it as an array (column 1, cell 1:[a,b,c,...]), but i want to split the values and populate the rows with the split values: (column 1, cell 1:[a]) (column 1, cell 2:) (column 1, cell 3:[c]) ....... I already created a variable with: - Value Class Name: java.lang.Srting[] - Expression: $F{array field}.split(',') Then at cell table i put $V{variable name}[0] When i try ti generate the preview gives this error: Error evaluating expression for source text: $F{array field}.split(', ') I need some help here. : Thanks in advance
  2. Hi there, I have the same proble, but i'm using jasper Studio. I created a variable with: - Valude Class Name: java.lang.Srting[] - Expression: $F{array field}.split(',') Then at cell table i put $V{variable name}[0] When i try ti generate the previes gives this error: Error evaluating expression for source text: $F{modelo}.split(', ') I need some help here. :
  3. Forget! Changed the language to JavaScript and workd well. http://community.jaspersoft.com/sites/all/libraries/ckeditor/plugins/smiley/images/wink_smile.gif
  4. Hi there, I have this report that use ElasticSearch as Data Adapter and i'm trying to use a table, but when i generate the preview gives the following error: net.sf.jasperreports.engine.JRException: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $F{modelo}at com.jaspersoft.studio.editor.preview.view.control.ReportControler.fillReport(ReportControler.java:548)at com.jaspersoft.studio.editor.preview.view.control.ReportControler.access$20(ReportControler.java:523)at com.jaspersoft.studio.editor.preview.view.control.ReportControler$5.run(ReportControler.java:404)at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)Caused by: net.sf.jasperreports.engine.JRRuntimeException: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $F{modelo}at net.sf.jasperreports.engine.fill.JRFillSubreport.prepare(JRFillSubreport.java:874)at net.sf.jasperreports.components.table.fill.FillTableSubreport.prepareSubreport(FillTableSubreport.java:172)at net.sf.jasperreports.components.table.fill.FillTable.prepare(FillTable.java:423)at net.sf.jasperreports.engine.fill.JRFillComponentElement.prepare(JRFillComponentElement.java:152)at net.sf.jasperreports.engine.fill.JRFillElementContainer.prepareElements(JRFillElementContainer.java:536)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:411)at net.sf.jasperreports.engine.fill.JRFillBand.fill(JRFillBand.java:386)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillColumnBand(JRVerticalFiller.java:2024)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillDetail(JRVerticalFiller.java:748)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportStart(JRVerticalFiller.java:255)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:115)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:582)at net.sf.jasperreports.engine.fill.BaseFillHandle$ReportFill.run(BaseFillHandle.java:123)at java.lang.Thread.run(Thread.java:745)Caused by: net.sf.jasperreports.engine.fill.JRExpressionEvalException: Error evaluating expression for source text: $F{modelo}at net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:352)at net.sf.jasperreports.components.table.fill.BuiltinExpressionEvaluatorDecorator.evaluateEstimated(BuiltinExpressionEvaluatorDecorator.java:94)at net.sf.jasperreports.engine.fill.JRCalculator.evaluateEstimated(JRCalculator.java:607)at net.sf.jasperreports.engine.fill.JRCalculator.estimateGroupRuptures(JRCalculator.java:237)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReportContent(JRVerticalFiller.java:264)at net.sf.jasperreports.engine.fill.JRVerticalFiller.fillReport(JRVerticalFiller.java:119)at net.sf.jasperreports.engine.fill.JRBaseFiller.fill(JRBaseFiller.java:582)at net.sf.jasperreports.engine.fill.BaseReportFiller.fill(BaseReportFiller.java:396)at net.sf.jasperreports.engine.fill.JRFillSubreport.fillSubreport(JRFillSubreport.java:732)at net.sf.jasperreports.engine.fill.JRSubreportRunnable.run(JRSubreportRunnable.java:59)at net.sf.jasperreports.engine.fill.AbstractThreadSubreportRunner.run(AbstractThreadSubreportRunner.java:221)at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)... 1 moreCaused by: java.lang.ClassCastException: java.lang.String cannot be cast to java.util.ArrayListat QR_VL_QR_Data_1486653694866_307582.evaluateEstimated(QR_VL_QR_Data_1486653694866_307582:385)at net.sf.jasperreports.engine.fill.JREvaluator.evaluateEstimated(JREvaluator.java:338)... 13 more Why is this happening and how can i solve this?Here is the jrxml file: https://drive.google.com/file/d/0B8cWPjnfLFzWSGhseVNDQ3B5cGs/view?usp=sharing Thanks in advance. Regards
  5. Hi there, I create this report, using ElasticSearch as Data Adapter, but when i generate the preview, the fields Detail 1 and Detail 2 duplicates (e.g. instead of having 2 pages, generates 4). Why is this happening and how can i solve? File: https://drive.google.com/file/d/0B8cWPjnfLFzWczFVQ3dOTjg2Snc/view?usp=sharing Thanks in advance Regards
  6. Thanks. It seams that the data comes with the [] (i'm using elasticsearch as data adapter. I will use $F{field}.toString().replace("[","").replace("]","") to remove the [],
  7. Hi there, How can i remove the [ ] that appear on the fields when i'm generationg a report? Regards
×
×
  • Create New...