Pessoal eu criei um parametro no iReport do tipo double (VlTotalCentrosCusto) e tento passar no código um valor do tipo double no java e quando ele imprime traz null
exemplo :
private double vlTotalCentrosCusto;
vlTotalCentrosCusto = getVlTotalCentrosCusto();
mParametros.put("VlTotalCentrosCusto ", vlTotalCentrosCusto);
public double getVlTotalCentrosCusto() {
double total = 0;
for (Iterator iter = getAtividadeCentroCusto().iterator(); iter.hasNext() {
AtividadeCentrocusto c = iter.next();
total += c.getVlRateio();
}
return total;
}
Grato;
Diogo Alló