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

thiagoalgo

Members
  • Posts

    6
  • Joined

  • Last visited

thiagoalgo's Achievements

Rookie

Rookie (2/14)

  • Week One Done
  • One Month Later
  • One Year In
  • First Post Rare
  • Conversation Starter Rare

Recent Badges

0

Reputation

  1. lucianc wrote: Could you post relevant JRXML and Java bean class fragments (i.e. field declarations, etc), or, even better, a full self-contained sample that replicates this? Regards, Lucian Hello Lucian, the following attached files. The attribute that generates the error is "aVista" which is part of the attribute "valorAVista." Thanks! [file name=files-68830888a3932bfefaed4e83dc198f37.zip size=2496] Post edited by: thiagoalgo, at: 2008/03/20 12:30
  2. lucianc wrote: Could you post relevant JRXML and Java bean class fragments (i.e. field declarations, etc), or, even better, a full self-contained sample that replicates this? Regards, Lucian Hello Lucian, following below the archives. The attribute that generates the error is "aVista" which is part of the attribute "valorAVista." Thanks! Code: package com.koerich.relatorio.facade.helper;import com.koerich.api.biblio.ERKNumeroUtils;import com.koerich.value.TagDadosProdutoVO;public class TagBean { private String codigo; private String descricao; private String fabricante; private String condicao; private String valorParcela; private String valorAPrazo; private String valorAVista; private String jurosMes; private String jurosAno; private Boolean aVista; public static TagBean converterVO(TagDadosProdutoVO vo) { TagBean bean = new TagBean(); bean.setCodigo(vo.getCodigo().toString()); bean.setDescricao(vo.getDescricao()); bean.setFabricante(vo.getMarca()); bean.setCondicao(vo.getPlano()); bean.setValorParcela(vo.getValorParcela() != null ? ERKNumeroUtils.formataValorDecimal(vo.getValorParcela()) : ""«»); bean.setValorAPrazo(vo.getValorPrazo() != null ? ERKNumeroUtils.formataValorDecimal(vo.getValorPrazo()) : ""«»); bean.setValorAVista(vo.getValorVista() != null ? ERKNumeroUtils.formataValorDecimal(vo.getValorVista()) : ""«»); bean.setJurosMes(vo.getJurosAoMes() != null ? ERKNumeroUtils.formataValorDecimal(vo.getJurosAoMes()) : ""«»); bean.setJurosAno(vo.getJurosAoAno() != null ? ERKNumeroUtils.formataValorDecimal(vo.getJurosAoAno()) : ""«»); bean.setAVista(vo.getAVista() != null ? vo.getAVista() : Boolean.FALSE); return bean; } public String getCodigo() { return codigo; } public void setCodigo(String codigo) { this.codigo = codigo; } public String getCondicao() { return condicao; } public void setCondicao(String condicao) { this.condicao = condicao; } public String getDescricao() { return descricao; } public void setDescricao(String decricao) { this.descricao = decricao; } public String getFabricante() { return fabricante; } public void setFabricante(String fabricante) { this.fabricante = fabricante; } public String getJurosAno() { return jurosAno; } public void setJurosAno(String jurosAno) { this.jurosAno = jurosAno; } public String getJurosMes() { return jurosMes; } public void setJurosMes(String jurosMes) { this.jurosMes = jurosMes; } public String getValorAPrazo() { return valorAPrazo; } public void setValorAPrazo(String valorAPrazo) { this.valorAPrazo = valorAPrazo; } public String getValorAVista() { return valorAVista; } public void setValorAVista(String valorAVista) { this.valorAVista = valorAVista; } public String getValorParcela() { return valorParcela; } public void setValorParcela(String valorParcela) { this.valorParcela = valorParcela; } public Boolean getAVista() { return aVista; } public void setAVista(Boolean tipoEtiqueta) { this.aVista = tipoEtiqueta; }}[/code] Code: [/code]
  3. I am filling out a report with JRBeanCollectionDataSource. When my java bean has an attribute whose name is the name of another attribute it launched an exception stating that this attribute does not exist. For example, when I have an attribute "myAttr" and another attribute "attr" the jasper reports launches the following exception: Code:
  4. I will try to illustrate: I have a report of countries. For each country I have a sub-report of states. Within the sub-report of states I would like to have a sub-report of cities. This is possible? Working with collections of java beans or JRDataSource, as I move the towns of under-report of the sub-states to report for cities? Thanks,
  5. How is the field of a bean of a subreport to another subreport? When you create a field containing a JRDataSource to another subreport happens a ClassCastException because the jasperreport tries to convert String.
  6. The JasperReport accepts subreport within another subreport?
×
×
  • Create New...