Good morning, I need to change a report in IREPORT that now works asim:
Currently the field works like this:
(Boolean)
$F{documentoVigente} ? "VIGENTE" : "VENCIDO"
I have a text called $ F {documentOpen} passing an expression class (java String)
I need my report to be generated like this today:
if $F{dataVencimento} = $F{CurrentDate} : "VIGENTE"
if else $F{dataVencimento} < $F{CurrentDate} : "VENCIDO"
else : "VENCENDO" > a data do dia
I have a class that references this report:
public class RepDtoReport implement Serizable {
private String nomeRepresentante;
private Integer cartaoAssinatura;
private String descricaoGrupo;
private String codigoPessoa;
private String descricaoCargo;
private String descricaoDocumento;
private Date dataAtualizacao;
private Date dataVencimento;
private boolean documentoVigente;
}getts e setters}
public boolean is documentoVigente() {
return documentoVigente;
}
public void setDocumentoVigente (final boolean documentoVigente){
this.documentoVigente = documentoVigente;
}
public Date getDataVencimento() {
return dataVencimento;
}
public void setDocumentoVigente (final Date dataVencimento ){
this.dataVencimento = dataVencimento;
}
Can I just do it on ireport?