Note that there are some explanatory texts on larger screens.

plurals
  1. PODon't work complex queries in iReport?
    primarykey
    data
    text
    <p>I'm working with <em>iReport</em> and I put a table from dataset and it has the following query( query test, because after I plan to add parameters):</p> <pre class="lang-sql prettyprint-override"><code>SELECT DISTINCT claseDocIdentidadFallecido AS DOCUMENTO, IFNULL( (SELECT e.numRegistrosReportados FROM estadisticoRD e WHERE e.codOficina='A1B' AND e.claseDocIdentidadFallecido='CC' AND e.mes=8 ), 0) AS MES1, IFNULL( (SELECT e.numRegistrosReportados FROM estadisticoRD e WHERE e.codOficina='A1B' AND e.claseDocIdentidadFallecido='CC' AND e.mes=9 ), 0) AS MES2, IFNULL( (SELECT e.numRegistrosReportados FROM estadisticoRD e WHERE e.codOficina='A1B' AND e.claseDocIdentidadFallecido='CC' AND e.mes=10 ), 0) AS MES3 FROM estadisticoRD e WHERE e.codOficina='A1B' AND e.claseDocIdentidadFallecido='CC' </code></pre> <p>Well, I test it with <em>iReport</em> and It shows :</p> <p><img src="https://i.stack.imgur.com/01OCN.png" alt="enter image description here"></p> <p>But when I try to compile and I get the following message:</p> <p>`</p> <pre><code>net.sf.jasperreports.engine.design.JRValidationException: Report design not valid :       1. Field not found : claseDocIdentidadFallecido       2. Field not found : IFNULL( (SELECT e.numRegistrosReportados FROM estadisticoRD e WHERE e.codOficina='A1B'     AND e.claseDocIdentidadFallecido='CC' AND e.mes=8 ), 0)       3. Field not found : IFNULL( (SELECT e.numRegistrosReportados FROM estadisticoRD e WHERE e.codOficina='A1B'     AND e.claseDocIdentidadFallecido='CC' AND e.mes=9 ), 0)       4. Field not found : IFNULL( (SELECT e.numRegistrosReportados FROM estadisticoRD e WHERE e.codOficina='A1B'     AND e.claseDocIdentidadFallecido='CC' AND e.mes=10 ), 0) at net.sf.jasperreports.engine.design.JRAbstractCompiler.compileReport(JRAbstractCompiler.java:153)      at com.jaspersoft.ireport.designer.compiler.IReportCompiler.run(IReportCompiler.java:512)      at org.openide.util.RequestProcessor$Task.run(RequestProcessor.java:572)      at org.openide.util.RequestProcessor$Processor.run(RequestProcessor.java:997) ` </code></pre> <p>So, what am I doing wrong?</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload